diff --git a/src/wg-dashboard.service b/src/wg-dashboard.service index 44b5c43d..d6ca41f3 100644 --- a/src/wg-dashboard.service +++ b/src/wg-dashboard.service @@ -5,7 +5,7 @@ ConditionPathIsDirectory=/etc/wireguard [Service] Environment="VIRTUAL_ENV={{VIRTUAL_ENV}}" WorkingDirectory={{APP_ROOT}} -ExecStart={{VIRTUAL_ENV}}/bin/python3 {{APP_ROOT}}dashboard.py +ExecStart={{VIRTUAL_ENV}}/bin/python3 {{APP_ROOT}}/dashboard.py PrivateTmp=yes Restart=always diff --git a/src/wgd.sh b/src/wgd.sh index 38814a16..bc0705f1 100755 --- a/src/wgd.sh +++ b/src/wgd.sh @@ -28,7 +28,7 @@ _check_and_set_venv(){ if [ ! -d $VIRTUAL_ENV ]; then python3 -m venv $VIRTUAL_ENV fi - . ${VIRTUAL_ENV}/activate + . ${VIRTUAL_ENV}/bin/activate } install_wgd(){