consistent spelling of SpyGuard for install, uninstall and update

This commit is contained in:
b068931cc450442b63f5b3d276ea4297 2024-01-15 22:47:33 +01:00
parent 20925f3c1f
commit 3d18d7ba13
3 changed files with 6 additions and 6 deletions

View File

@ -66,8 +66,8 @@ set_credentials() {
} }
create_directory() { create_directory() {
# Create the Spyguard directory and move the whole stuff there. # Create the SpyGuard directory and move the whole stuff there.
echo -e "[+] Creating Spyguard folder under /usr/share/" echo -e "[+] Creating SpyGuard folder under /usr/share/"
mkdir /usr/share/spyguard mkdir /usr/share/spyguard
cp -Rf ./* /usr/share/spyguard cp -Rf ./* /usr/share/spyguard
} }

View File

@ -1,11 +1,11 @@
delete_folder(){ delete_folder(){
echo "[+] Deleting Spyguard folders" echo "[+] Deleting SpyGuard folders"
rm -rf /usr/share/spyguard/ rm -rf /usr/share/spyguard/
} }
delete_services(){ delete_services(){
echo "[+] Deleting Spyguard services" echo "[+] Deleting SpyGuard services"
systemctl disable spyguard-frontend &> /dev/null systemctl disable spyguard-frontend &> /dev/null
systemctl disable spyguard-backend &> /dev/null systemctl disable spyguard-backend &> /dev/null

View File

@ -11,7 +11,7 @@ if [ $PWD = "/usr/share/spyguard" ]; then
cd /tmp/spyguard && bash update.sh cd /tmp/spyguard && bash update.sh
elif [ $PWD = "/tmp/spyguard" ]; then elif [ $PWD = "/tmp/spyguard" ]; then
echo "[+] Saving spyguard backend's SSL configuration in /tmp/" echo "[+] Saving SpyGuard backend's SSL configuration in /tmp/"
mv /usr/share/spyguard/server/backend/*.pem /tmp/ mv /usr/share/spyguard/server/backend/*.pem /tmp/
echo "[+] Deleting the current SpyGuard folders and files." echo "[+] Deleting the current SpyGuard folders and files."
@ -48,4 +48,4 @@ elif [ $PWD = "/tmp/spyguard" ]; then
cd /tmp/spyguard && git tag | tail -n 1 | xargs echo -n > /usr/share/spyguard/VERSION cd /tmp/spyguard && git tag | tail -n 1 | xargs echo -n > /usr/share/spyguard/VERSION
echo "[+] SpyGuard updated!" echo "[+] SpyGuard updated!"
fi fi