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:
parent
61bdb3915f
commit
68ca2da8c1
4 changed files with 31 additions and 1 deletions
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
|
@ -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…
Add table
Reference in a new issue