mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-22 15:20:09 +01:00
commit
a8f498f292
@ -5,7 +5,7 @@ ConditionPathIsDirectory=/etc/wireguard
|
|||||||
[Service]
|
[Service]
|
||||||
Environment="VIRTUAL_ENV={{VIRTUAL_ENV}}"
|
Environment="VIRTUAL_ENV={{VIRTUAL_ENV}}"
|
||||||
WorkingDirectory={{APP_ROOT}}
|
WorkingDirectory={{APP_ROOT}}
|
||||||
ExecStart={{VIRTUAL_ENV}}/bin/python3 {{APP_ROOT}}dashboard.py
|
ExecStart={{VIRTUAL_ENV}}/bin/python3 {{APP_ROOT}}/dashboard.py
|
||||||
PrivateTmp=yes
|
PrivateTmp=yes
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ _check_and_set_venv(){
|
|||||||
if [ ! -d $VIRTUAL_ENV ]; then
|
if [ ! -d $VIRTUAL_ENV ]; then
|
||||||
python3 -m venv $VIRTUAL_ENV
|
python3 -m venv $VIRTUAL_ENV
|
||||||
fi
|
fi
|
||||||
. ${VIRTUAL_ENV}/activate
|
. ${VIRTUAL_ENV}/bin/activate
|
||||||
}
|
}
|
||||||
|
|
||||||
install_wgd(){
|
install_wgd(){
|
||||||
|
Loading…
Reference in New Issue
Block a user