glacier-old/install/INSTALL-GLACIER.sh

43 lines
1.4 KiB
Bash
Raw Normal View History

2022-04-12 12:38:01 -04:00
#!/bin/sh
# 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
2022-04-20 15:47:13 -04:00
mv ../glacier.conf /etc
2022-04-12 12:38:01 -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..."
mkdir /var/log/glacier && echo "[ i ] Creating Glacier timestamp log..."
2022-05-27 14:06:39 -04:00
mv ../hooks.sh /etc/glacier
2022-04-12 16:31:56 -04:00
chmod +x ../scripts/glacier-install.sh
chmod +x ../scripts/glacier-remove.sh
chmod +x ../scripts/glacier-update.sh
chmod +x ../scripts/glacier-query.sh
chmod +x ../scripts/glacier-cache.sh
chmod +x ../scripts/glacier-cache-install.sh
chmod +x ../scripts/glacier-cache-clear.sh
chmod +x ../scripts/glacier-help.sh
2022-04-12 12:38:01 -04:00
echo "[ i ] Installing glacier..."
cd ../scripts
cp glacier-install.sh glacier-install
cp glacier-remove.sh glacier-remove
cp glacier-update.sh glacier-update
cp glacier-query.sh glacier-query
cp glacier-cache.sh glacier-cache
cp glacier-cache-install.sh glacier-cache-install
cp glacier-cache-clear.sh glacier-cache-clear
cp glacier-help.sh glacier-help
mv glacier-install /bin
mv glacier-remove /bin
mv glacier-update /bin
mv glacier-query /bin
mv glacier-cache /bin
mv glacier-cache-install /bin
mv glacier-cache-clear /bin
mv glacier-help /bin
echo "[ i ] Glacier has finished installing successfully."