glacier-old/install/install.sh

25 lines
508 B
Bash
Raw Normal View History

2022-10-06 20:16:48 -04:00
#!/bin/sh
if [[ $(/usr/bin/id -u) -ne 0 ]]; then
printf " [ * ] Installation Script must be run as root.\n"
exit 0
fi
# Create directories
mkdir /etc/glacier
mkdir /etc/glacier/pkginfo
mkdir /var/log/glacier
mkdir /var/cache/glacier
# Install Scripts
cd ../src
chmod +x *
cp glacier /usr/bin/glacier
cp glacier.conf /etc/glacier.conf
cp glacier_release /etc/glacier/glacier_release
cp gscripts /usr/bin/gscripts
cp messages /etc/glacier/messages
cp hooks /etc/glacier/hooks
printf "done\n"