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

Allow the app to access multimedia directories

This commit is contained in:
tituspijean 2022-01-16 19:19:07 +01:00
parent 61bdb3915f
commit 68ca2da8c1
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
4 changed files with 31 additions and 1 deletions

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~ynh1",
"version": "1.0.1~ynh2",
"url": "https://bazarr.media",
"upstream": {
"license": "GPL-3.0",

View file

@ -145,6 +145,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
#=================================================
# GENERIC FINALIZATION
#=================================================

View file

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

View file

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