From 227dd98e0f9cceda00be19838c8de29bf5d3bebf Mon Sep 17 00:00:00 2001 From: b068931cc450442b63f5b3d276ea4297 <77171083+b068931cc450442b63f5b3d276ea4297@users.noreply.github.com> Date: Tue, 9 Jan 2024 12:45:23 +0100 Subject: [PATCH] venv to /usr/share/spyguard/spyguard-venv --- install.sh | 8 ++++---- uninstall.sh | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index a9b87d2..682789a 100644 --- a/install.sh +++ b/install.sh @@ -90,7 +90,7 @@ Description=Spyguard frontend service [Service] Type=simple -ExecStart=/home/${SUDO_USER}/SpyGuard-venv/bin/python3 /usr/share/spyguard/server/frontend/main.py +ExecStart=/usr/share/spyguard/spyguard-venv/bin/python3 /usr/share/spyguard/server/frontend/main.py Restart=on-abort KillMode=process @@ -105,7 +105,7 @@ Description=Spyguard backend service [Service] Type=simple -ExecStart=/home/${SUDO_USER}/SpyGuard-venv/bin/python3 /usr/share/spyguard/server/backend/main.py +ExecStart=/usr/share/spyguard/spyguard-venv/bin/python3 /usr/share/spyguard/server/backend/main.py Restart=on-abort KillMode=process @@ -122,7 +122,7 @@ After=network-online.target [Service] Type=simple -ExecStart=/home/${SUDO_USER}/SpyGuard-venv/bin/python3 /usr/share/spyguard/server/backend/watchers.py +ExecStart=/usr/share/spyguard/spyguard-venv/bin/python3 /usr/share/spyguard/server/backend/watchers.py Restart=on-abort KillMode=process @@ -185,7 +185,7 @@ check_dependencies() { fi done echo -e "\e[39m[+] Install Python packages...\e[39m" - python3 -m venv /home/${SUDO_USER}/SpyGuard-venv && source /home/${SUDO_USER}/SpyGuard-venv/bin/activate && python3 -m pip install -r "$SCRIPT_PATH/assets/requirements.txt" + python3 -m venv /usr/share/spyguard/spyguard-venv && source /usr/share/spyguard/spyguard-venv/bin/activate && python3 -m pip install -r "$SCRIPT_PATH/assets/requirements.txt" } get_version() { diff --git a/uninstall.sh b/uninstall.sh index a4d42bb..8f04401 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -2,7 +2,6 @@ delete_folder(){ echo "[+] Deleting Spyguard folders" rm -rf /usr/share/spyguard/ - rm -rf /home/${SUDO_USER}/SpyGuard-venv } delete_services(){