Update glacier-update.sh

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

View File

@ -2,6 +2,10 @@
# glacier-update # glacier-update
# Script used to update packages # Script used to update packages
# Glacier preloading
source /etc/glacier.conf
# Require Glacier to be run as root # Require Glacier 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."