mirror of
https://github.com/YunoHost-Apps/bazarr_ynh.git
synced 2024-09-03 18:06:27 +02:00
Load standard environment PATH for service
This commit is contained in:
parent
9162cdd4cc
commit
760d214b8f
3 changed files with 5 additions and 1 deletions
|
@ -7,7 +7,7 @@ Type=simple
|
|||
User=__APP__
|
||||
Group=__APP__
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
Environment=PATH=__FINALPATH__/venv/bin
|
||||
Environment=PATH=__ENV_PATH__
|
||||
WorkingDirectory=__FINALPATH__/
|
||||
ExecStart=__FINALPATH__/venv/bin/python bazarr.py
|
||||
StandardOutput=append:/var/log/__APP__/__APP__.log
|
||||
|
|
|
@ -121,6 +121,8 @@ popd
|
|||
#=================================================
|
||||
ynh_script_progression --message="Configuring a systemd service..." --weight=1
|
||||
|
||||
env_path="$final_path/venv/bin:$PATH"
|
||||
|
||||
# Create a dedicated systemd config
|
||||
ynh_add_systemd_config
|
||||
|
||||
|
|
|
@ -139,6 +139,8 @@ ynh_multimedia_addaccess $app
|
|||
#=================================================
|
||||
ynh_script_progression --message="Upgrading systemd configuration..." --weight=1
|
||||
|
||||
env_path="$final_path/venv/bin:$PATH"
|
||||
|
||||
# Create a dedicated systemd config
|
||||
ynh_add_systemd_config
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue