mirror of
https://github.com/YunoHost-Apps/bazarr_ynh.git
synced 2024-09-03 18:06:27 +02:00
Merge remote-tracking branch 'origin/testing' into example
This commit is contained in:
commit
d202df0239
8 changed files with 41 additions and 8 deletions
|
@ -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~ynh1
|
||||
**Shipped version:** 1.0.1~ynh2
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -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~ynh1
|
||||
**Version incluse :** 1.0.1~ynh2
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
setup_private=1
|
||||
setup_public=0
|
||||
upgrade=1
|
||||
#upgrade=1 from_commit=CommitHash
|
||||
upgrade=1 from_commit=22445f018b70ed1a89593107afff498b672f93ad
|
||||
backup_restore=1
|
||||
multi_instance=1
|
||||
port_already_use=0
|
||||
|
@ -29,6 +29,6 @@
|
|||
Email=
|
||||
Notification=none
|
||||
;;; Upgrade options
|
||||
; commit=CommitHash
|
||||
name=Name and date of the commit.
|
||||
manifest_arg=domain=DOMAIN&path=PATH&admin=USER&language=fr&is_public=1&password=pass&port=666&
|
||||
; commit=22445f018b70ed1a89593107afff498b672f93ad
|
||||
name=2022-01-13 v1.0.1~ynh1
|
||||
manifest_arg=domain=DOMAIN&path=PATH&admin=USER&
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[general]
|
||||
ip = 127.0.0.1
|
||||
port = __PORT__
|
||||
base_url = __PATH__
|
||||
base_url = __PATH_URL__
|
||||
path_mappings = []
|
||||
debug = False
|
||||
branch = master
|
||||
|
|
|
@ -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~ynh1",
|
||||
"version": "1.0.1~ynh2",
|
||||
"url": "https://bazarr.media",
|
||||
"upstream": {
|
||||
"license": "GPL-3.0",
|
||||
|
|
|
@ -138,13 +138,26 @@ ynh_systemd_action --service_name=$app --action="stop" --line_match="Bazarr exit
|
|||
detect_and_read_radarr_and_sonarr_settings
|
||||
|
||||
flask_key=$(ynh_string_random --length=32)
|
||||
ynh_app_setting_set --app=$app --key=flask_key --value=$flask_key
|
||||
|
||||
api_key=$(ynh_string_random --length=32)
|
||||
ynh_app_setting_set --app=$app --key=api_key --value=$api_key
|
||||
|
||||
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"
|
||||
|
||||
#=================================================
|
||||
# YUNOHOST MULTIMEDIA INTEGRATION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Adding multimedia directories..." --weight=1
|
||||
|
||||
# Build YunoHost multimedia directories
|
||||
ynh_multimedia_build_main_dir
|
||||
# Enable writing into these directories
|
||||
ynh_multimedia_addaccess $app
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
#=================================================
|
||||
|
|
|
@ -98,6 +98,16 @@ ynh_script_progression --message="Restoring the systemd configuration..." --weig
|
|||
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
|
||||
systemctl enable $app.service --quiet
|
||||
|
||||
#=================================================
|
||||
# YUNOHOST MULTIMEDIA INTEGRATION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Adding multimedia directories..." --weight=1
|
||||
|
||||
# Build YunoHost multimedia directories
|
||||
ynh_multimedia_build_main_dir
|
||||
# Enable writing into these directories
|
||||
ynh_multimedia_addaccess $app
|
||||
|
||||
#=================================================
|
||||
# RESTORE THE LOGROTATE CONFIGURATION
|
||||
#=================================================
|
||||
|
|
|
@ -129,6 +129,16 @@ ynh_add_config --template="config.ini" --destination="$final_path/data/config/co
|
|||
chmod 660 "$final_path/data/config/config.ini"
|
||||
chown $app: "$final_path/data/config/config.ini"
|
||||
|
||||
#=================================================
|
||||
# YUNOHOST MULTIMEDIA INTEGRATION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Adding multimedia directories..." --weight=1
|
||||
|
||||
# Build YunoHost multimedia directories
|
||||
ynh_multimedia_build_main_dir
|
||||
# Enable writing into these directories
|
||||
ynh_multimedia_addaccess $app
|
||||
|
||||
#=================================================
|
||||
# SETUP SYSTEMD
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue