Update glacier-install.sh

This commit is contained in:
everest 2022-05-02 16:40:57 +00:00 committed by GitHub
parent af551c95ee
commit b555f13f71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,10 @@ export error="\xE2\x9C\x95"
export warning="\x21" export warning="\x21"
export question="\x3F" export question="\x3F"
# Glacier preloading
source /etc/glacier.conf
# Require the script to be run as root # 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 [ \xE2\x9C\x95 ] \033[m Please run Glacier as root." printf "\033[1;31m [ \xE2\x9C\x95 ] \033[m Please run Glacier as root."