From 9890d4f3bc4d6361c4b4a2da9c258cb8a04c1541 Mon Sep 17 00:00:00 2001 From: Donald Cheng Hong Zou Date: Sat, 25 Dec 2021 16:29:33 -0500 Subject: [PATCH] Removed using `venv` for now --- src/wgd.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/wgd.sh b/src/wgd.sh index 693aeea..ffe27a8 100755 --- a/src/wgd.sh +++ b/src/wgd.sh @@ -45,24 +45,24 @@ install_wgd(){ fi printf "| Installing latest Python dependencies |\n" - _check_and_set_venv - ${VIRTUAL_ENV}/bin/python3 -m pip install -U pip +# _check_and_set_venv +# ${VIRTUAL_ENV}/bin/python3 -m pip install -U pip # ${VIRTUAL_ENV}/bin/python3 -m pip install virtualenv # set up the local environment - ${VIRTUAL_ENV}/bin/python3 -m pip install -U -r requirements.txt +# ${VIRTUAL_ENV}/bin/python3 -m pip install -U -r requirements.txt + python3 -m pip install -U -r requirements.txt printf "| WGDashboard installed successfully! |\n" printf "| Preparing the systemctl unit file |\n" - sed -i "s#{{APP_ROOT}}#${APP_ROOT}#" wg-dashboard.service - sed -i "s#{{VIRTUAL_ENV}}#${VIRTUAL_ENV}#" wg-dashboard.service +# sed -i "s#{{APP_ROOT}}#${APP_ROOT}#" wg-dashboard.service +# sed -i "s#{{VIRTUAL_ENV}}#${VIRTUAL_ENV}#" wg-dashboard.service # cat wg-dashboard.service | sudo SYSTEMD_EDITOR=tee systemctl edit --force --full wg-dashboard.service - systemctl daemon-reload - printf "| Consider 'systemctl enable wg-dashboard' |\n" - printf " and 'systemctl start wg-dashboard'\n" - printf " use '${0} stop' before starting with systemctl\n" +# systemctl daemon-reload +# printf "| Consider 'systemctl enable wg-dashboard' |\n" +# printf " and 'systemctl start wg-dashboard'\n" +# printf " use '${0} stop' before starting with systemctl\n" echo - printf "| Now starting Dashboard in background |\n" start_wgd }