Update glacier-cache-clear.sh
This commit is contained in:
parent
81b2247840
commit
c83c6a6cbc
@ -2,6 +2,10 @@
|
||||
# glacier-cache-clear
|
||||
# Script used to clear Glacier's cache
|
||||
|
||||
# Glacier preloading
|
||||
|
||||
source /etc/glacier.conf
|
||||
|
||||
# Require the script to be run as root
|
||||
if [[ $(/usr/bin/id -u) -ne 0 ]]; then
|
||||
printf "\033[1;31m [ $error ] \033[m Please run Glacier as root."
|
||||
|
Loading…
Reference in New Issue
Block a user