Update glacier-remove.sh

This commit is contained in:
everest 2022-05-02 16:41:34 +00:00 committed by GitHub
parent 4085450712
commit b134177b9e
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 [ $error ] \033[m Please run Glacier as root." printf "\033[1;31m [ $error ] \033[m Please run Glacier as root."