glacier-old/INSTALL-GLACIER.sh

40 lines
1.3 KiB
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-28 16:50:37 -04:00
mkdir /etc/glacier && echo "[ i ] Creating Glacier directory..."
mkdir /etc/glacier/pkginfo && echo "[ i ] Creating Glacier package list directory..."
mkdir /var/cache/glacier && echo "[ i ] Creating Glacier package cache..."
2022-04-05 09:47:19 -04:00
mkdir /var/log/glacier && echo "[ i ] Creating Glacier timestamp log..."
2022-03-09 17:01:26 -05:00
chmod +x glacier-install.sh
chmod +x glacier-remove.sh
chmod +x glacier-update.sh
chmod +x glacier-query.sh
2022-03-28 17:21:53 -04:00
chmod +x glacier-cache.sh
chmod +x glacier-cache-install.sh
chmod +x glacier-cache-clear.sh
2022-03-24 09:38:32 -04:00
chmod +x glacier-help.sh
2022-03-09 17:01:26 -05:00
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
2022-03-28 17:21:53 -04:00
cp glacier-cache.sh glacier-cache
cp glacier-cache-install.sh glacier-cache-install
cp glacier-cache-clear.sh glacier-cache-clear
2022-03-24 09:38:32 -04:00
cp glacier-help.sh glacier-help
2022-03-09 17:01:26 -05:00
mv glacier-install /bin
mv glacier-remove /bin
mv glacier-update /bin
mv glacier-query /bin
2022-03-28 17:21:53 -04:00
mv glacier-cache /bin
mv glacier-cache-install /bin
mv glacier-cache-clear /bin
2022-03-24 09:38:32 -04:00
mv glacier-help /bin
2022-03-09 17:41:54 -05:00
echo "[ i ] Glacier has finished installing successfully."