glacier-old/INSTALL-GLACIER.sh

26 lines
765 B
Bash
Raw Normal View History

2022-03-09 17:01:26 -05:00
#!/bin/sh
# Glacier Installation Script
2022-03-09 17:41:54 -05:00
# 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
2022-03-09 17:01:26 -05:00
mkdir /etc/glacier && echo "[ i ] Creating /etc/glacier..."
mkdir /etc/glacier/pkginfo && echo "Creating /etc/glacier/pkginfo..."
chmod +x glacier-install.sh
chmod +x glacier-remove.sh
chmod +x glacier-update.sh
chmod +x glacier-query.sh
echo "[ i ] Installing glacier..."
cp glacier-install.sh glacier-install
cp glacier-remove.sh glacier-remove
cp glacier-update.sh glacier-update
cp glacier-query.sh glacier-query
mv glacier-install /bin
mv glacier-remove /bin
mv glacier-update /bin
mv glacier-query /bin
2022-03-09 17:41:54 -05:00
echo "[ i ] Glacier has finished installing successfully."