1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/bazarr_ynh.git synced 2024-09-03 18:06:27 +02:00

Merge pull request #4 from YunoHost-Apps/testing

Load standard environment PATH for service and do not overwrite config file
This commit is contained in:
tituspijean 2022-03-31 13:13:09 +02:00 committed by GitHub
commit 4a9e25900d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 16 additions and 14 deletions

View file

@ -24,7 +24,7 @@ Bazarr is a companion application to Sonarr and Radarr that manages and download
- Subtitles upgrade whenever better ones are released
**Shipped version:** 1.0.1~ynh2
**Shipped version:** 1.0.1~ynh3
@ -34,8 +34,7 @@ Bazarr is a companion application to Sonarr and Radarr that manages and download
## Disclaimers / important information
- If Radarr or Sonarr are installed on your server, the app will automatically retrieve their settings and integrate them in its config.
- If you add or remove them afterwards, force an upgrade of Bazarr: it will update its settings again.
- If Radarr or Sonarr are installed beforehand on your server, the app will automatically retrieve their settings and integrate them in its config.
- Enabling Auto-updating in the settings is discouraged and no support will be provided if you do so.
## Documentation and resources

View file

@ -20,7 +20,7 @@ Bazarr is a companion application to Sonarr and Radarr that manages and download
- Subtitles upgrade whenever better ones are released
**Version incluse :** 1.0.1~ynh2
**Version incluse :** 1.0.1~ynh3
@ -30,8 +30,7 @@ Bazarr is a companion application to Sonarr and Radarr that manages and download
## Avertissements / informations importantes
- If Radarr or Sonarr are installed on your server, the app will automatically retrieve their settings and integrate them in its config.
- If you add or remove them afterwards, force an upgrade of Bazarr: it will update its settings again.
- If Radarr or Sonarr are installed beforehand on your server, the app will automatically retrieve their settings and integrate them in its config.
- Enabling Auto-updating in the settings is discouraged and no support will be provided if you do so.
## Documentations et ressources

View file

@ -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

View file

@ -1,3 +1,2 @@
- If Radarr or Sonarr are installed on your server, the app will automatically retrieve their settings and integrate them in its config.
- If you add or remove them afterwards, force an upgrade of Bazarr: it will update its settings again.
- If Radarr or Sonarr are installed beforehand on your server, the app will automatically retrieve their settings and integrate them in its config.
- Enabling Auto-updating in the settings is discouraged and no support will be provided if you do so.

View file

@ -6,7 +6,7 @@
"en": "Automated subtitle downloading for Sonarr and Radarr",
"fr": "Téléchargement automatique de sous-titres pour Sonarr et Radarr"
},
"version": "1.0.1~ynh2",
"version": "1.0.1~ynh3",
"url": "https://bazarr.media",
"upstream": {
"license": "GPL-3.0",

View file

@ -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

View file

@ -117,12 +117,13 @@ popd
#=================================================
# UPDATE A CONFIG FILE
#=================================================
ynh_script_progression --message="Updating a configuration file..." --weight=1
#FIXME: Find a way not to override all settings while upgrading the config file.
#ynh_script_progression --message="Updating a configuration file..." --weight=1
ynh_add_config --template="config.ini" --destination="$final_path/data/config/config.ini"
#ynh_add_config --template="config.ini" --destination="$final_path/data/config/config.ini"
chmod 660 "$final_path/data/config/config.ini"
chown $app: "$final_path/data/config/config.ini"
#chmod 660 "$final_path/data/config/config.ini"
#chown $app: "$final_path/data/config/config.ini"
#=================================================
# YUNOHOST MULTIMEDIA INTEGRATION
@ -139,6 +140,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