Update INSTALL-GLACIER.sh

This commit is contained in:
everest 2022-03-09 22:41:54 +00:00 committed by GitHub
parent f76856aa1d
commit 25ae7889bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,12 @@
#!/bin/sh #!/bin/sh
# Glacier Installation Script # Glacier Installation Script
# Require the script to be run as root
if [[ $(/usr/bin/id -u) -ne 0 ]]; then
echo "[ X ] Please run Glacier installation script as root."
exit
fi
mkdir /etc/glacier && echo "[ i ] Creating /etc/glacier..." mkdir /etc/glacier && echo "[ i ] Creating /etc/glacier..."
mkdir /etc/glacier/pkginfo && echo "Creating /etc/glacier/pkginfo..." mkdir /etc/glacier/pkginfo && echo "Creating /etc/glacier/pkginfo..."
chmod +x glacier-install.sh chmod +x glacier-install.sh
@ -16,4 +22,4 @@ mv glacier-install /bin
mv glacier-remove /bin mv glacier-remove /bin
mv glacier-update /bin mv glacier-update /bin
mv glacier-query /bin mv glacier-query /bin
echo "[ i ] Glacier has finished installing successfully echo "[ i ] Glacier has finished installing successfully."