25 lines
508 B
Bash
Executable File
25 lines
508 B
Bash
Executable File
#!/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"
|