From 3eaa78fc18d515329da7601bdae354712f3f1550 Mon Sep 17 00:00:00 2001 From: everest Date: Mon, 2 May 2022 16:42:08 +0000 Subject: [PATCH] Update glacier-cache.sh --- scripts/glacier-cache.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/glacier-cache.sh b/scripts/glacier-cache.sh index 5c908ba..0de7220 100644 --- a/scripts/glacier-cache.sh +++ b/scripts/glacier-cache.sh @@ -2,7 +2,11 @@ # glacier-cache # 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 printf "\033[1;31m [ $error ] \033[m Please run Glacier as root." exit