1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/navidrome_ynh.git synced 2024-09-03 19:46:30 +02:00
This commit is contained in:
ericgaspar 2022-01-13 10:49:58 +01:00
parent 7fcc6d24bc
commit 9b3109adbd
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 11 additions and 1 deletions

View file

@ -27,6 +27,9 @@ architecture=$YNH_ARCH
app=$YNH_APP_INSTANCE_NAME
EnableDownloads="true"
#=================================================
# CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS
#=================================================
@ -45,7 +48,7 @@ ynh_script_progression --message="Storing installation settings..." --weight=2
ynh_app_setting_set --app=$app --key=domain --value=$domain
ynh_app_setting_set --app=$app --key=path --value=$path_url
ynh_app_setting_set --app=$app --key=EnableDownloads --value="1"
ynh_app_setting_set --app=$app --key=EnableDownloads --value=$EnableDownloads
#=================================================
# STANDARD MODIFICATIONS

View file

@ -22,6 +22,8 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
port=$(ynh_app_setting_get --app=$app --key=port)
architecture=$YNH_ARCH
EnableDownloads=$(ynh_app_setting_get --app=$app --key=EnableDownloads)
#=================================================
# CHECK VERSION
#=================================================
@ -56,6 +58,11 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path=systemd
#=================================================
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
if [ -z "$EnableDownloads" ] ||
EnableDownloads="true"
ynh_app_setting_set --app=$app --key=EnableDownloads --value=$EnableDownloads
fi
# Cleaning legacy permissions
if ynh_legacy_permissions_exists; then
ynh_legacy_permissions_delete_all