Update glacier-cache.sh
This commit is contained in:
parent
9739ea56af
commit
3eaa78fc18
@ -2,7 +2,11 @@
|
|||||||
# glacier-cache
|
# glacier-cache
|
||||||
# Script used to download a package and cache it
|
# Script used to download a package and cache it
|
||||||
|
|
||||||
# Require the script to be run as root\
|
# Glacier preloading
|
||||||
|
|
||||||
|
source /etc/glacier.conf
|
||||||
|
|
||||||
|
# Require the script to be run as root
|
||||||
if [[ $(/usr/bin/id -u) -ne 0 ]]; then
|
if [[ $(/usr/bin/id -u) -ne 0 ]]; then
|
||||||
printf "\033[1;31m [ $error ] \033[m Please run Glacier as root."
|
printf "\033[1;31m [ $error ] \033[m Please run Glacier as root."
|
||||||
exit
|
exit
|
||||||
|
Loading…
Reference in New Issue
Block a user