glacier-old/install/INSTALL-GLACIER.sh

24 lines
957 B
Bash
Raw Normal View History

2022-05-31 09:20:51 -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
mv ../scripts/glacier.conf /etc
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..."
mv ../scripts/hooks.sh /etc/glacier
chmod +x ../scripts/glacier
echo "[ i ] Installing glacier..."
cd ../scripts
mv glacier /bin
2022-06-24 18:00:09 -04:00
echo "[ i ] A make.conf file is needed for Glacier to work properly."
echo "[ i ] Enter the amount of CPU cores and threads you have comined:" && read glacier-install-make-conf-cpu
touch /etc/make.conf
echo "MAKEFLAGS=-j$glacier-install-make-conf-cpu"
echo "[ i ] Glacier has installed successfully."