Glacier v3.0.0-rc.1
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
#!/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
|
||||
mv GLACIER_INTEGRITY_CHECK /bin
|
||||
touch /etc/make.conf
|
||||
printf "[ i ] Glacier has finished installing."
|
||||
@@ -1,20 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Require the script to be run as root
|
||||
if [[ $(/usr/bin/id -u) -ne 0 ]]; then
|
||||
echo "[ X ] Please run Glacier uninstallation as root."
|
||||
exit
|
||||
fi
|
||||
|
||||
echo "[ ! ] It is recommended to uninstall all Glacier packages before uninstalling Glacier."
|
||||
echo "[ ! ] This will prevent untracked packages from remaining on your system and possibly creating a security risk."
|
||||
echo "[ ! ] To see which packages are installed on your system, run the following command:"
|
||||
echo "[ ! ] ls /etc/glacier/pkginfo"
|
||||
while true; do
|
||||
read -p "[ ? ] Would you like to uninstall Glacier?" yn
|
||||
case $yn in
|
||||
[Yy]* ) rm -rf /etc/glacier && rm -rf /var/cache/glacier && rm -rf /var/log/glacier && rm /bin/glacier; break;;
|
||||
[Nn]* ) exit;;
|
||||
* ) echo "[ ! ] You must answer either yes or no.";;
|
||||
esac
|
||||
done
|
||||
Binary file not shown.
24
install/install.sh
Executable file
24
install/install.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user