From 8118597e517e7e59dc16573688be34333bd0ea59 Mon Sep 17 00:00:00 2001 From: everest Date: Tue, 31 May 2022 13:19:54 +0000 Subject: [PATCH] Delete install directory --- install/INSTALL-GLACIER.sh | 42 ------------------------------------ install/UNINSTALL-GLACIER.sh | 20 ----------------- install/UPDATE-GLACIER.sh | 34 ----------------------------- install/WGET-INSTALL.sh | 3 --- 4 files changed, 99 deletions(-) delete mode 100644 install/INSTALL-GLACIER.sh delete mode 100644 install/UNINSTALL-GLACIER.sh delete mode 100644 install/UPDATE-GLACIER.sh delete mode 100644 install/WGET-INSTALL.sh diff --git a/install/INSTALL-GLACIER.sh b/install/INSTALL-GLACIER.sh deleted file mode 100644 index 472e7f7..0000000 --- a/install/INSTALL-GLACIER.sh +++ /dev/null @@ -1,42 +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 ../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 ../hooks.sh /etc/glacier -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 -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." diff --git a/install/UNINSTALL-GLACIER.sh b/install/UNINSTALL-GLACIER.sh deleted file mode 100644 index 4dddf90..0000000 --- a/install/UNINSTALL-GLACIER.sh +++ /dev/null @@ -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-install && rm /bin/glacier-update && rm /bin/glacier-remove && rm /bin/glacier-query && rm /bin/glacier-help; break;; - [Nn]* ) exit;; - * ) echo "[ ! ] You must answer either yes or no.";; - esac -done diff --git a/install/UPDATE-GLACIER.sh b/install/UPDATE-GLACIER.sh deleted file mode 100644 index 29d280e..0000000 --- a/install/UPDATE-GLACIER.sh +++ /dev/null @@ -1,34 +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 update script as root." - exit -fi - -echo "[ i ] Removing outdated binaries..." -rm /bin/glacier-install -rm /bin/glacier-update -rm /bin/glacier-remove -rm /bin/glacier-query -rm /bin/glacier-help -echo "[ i ] Marking new binaries as executable..." -cd ../scripts -chmod +x glacier-install.sh -chmod +x glacier-update.sh -chmod +x glacier-remove.sh -chmod +x glacier-query.sh -chmod +x glacier-help.sh -echo "[ i ] Preparing to install new binaries..." -cp glacier-install.sh glacier-install -cp glacier-update.sh glacier-update -cp glacier-remove.sh glacier-remove -cp glacier-query.sh glacier-query -cp glacier-help.sh glacier-help -echo "[ i ] Installing new binaries..." -mv glacier-install /bin -mv glacier-update /bin -mv glacier-remove /bin -mv glacier-query /bin -mv glacier-help /bin -echo "[ i ] Glacier was successfully updated to the latest version." diff --git a/install/WGET-INSTALL.sh b/install/WGET-INSTALL.sh deleted file mode 100644 index 88c72a1..0000000 --- a/install/WGET-INSTALL.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin.sh - -rm -rf /tmp/glacier && cd /tmp && git clone https://github.com/everest-linux/glacier && cd glacier/install && chmod +x INSTALL-GLACIER.sh && sudo ./INSTALL-GLACIER.sh