|
|
@ -102,6 +102,12 @@ fi |
|
|
# Exit if an error occurs during the execution of the script |
|
|
# Exit if an error occurs during the execution of the script |
|
|
ynh_abort_if_errors |
|
|
ynh_abort_if_errors |
|
|
|
|
|
|
|
|
|
|
|
if ynh_legacy_permissions_exists; then |
|
|
|
|
|
ynh_legacy_permissions_delete_all |
|
|
|
|
|
|
|
|
|
|
|
ynh_permission_create --permission="api" --label="api" --url="re:$(sed 's/[\.\-]/\%&/g' <<< $domain)/%.well%-known/.*" --allowed="visitors" "all_users" --auth_header="false" --show_tile="false" --protected="true" |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
#================================================= |
|
|
#================================================= |
|
|
# UPGRADE DEPENDENCIES |
|
|
# UPGRADE DEPENDENCIES |
|
|
#================================================= |
|
|
#================================================= |
|
|
@ -328,8 +334,7 @@ then |
|
|
nc_conf="${final_path}/config.json" |
|
|
nc_conf="${final_path}/config.json" |
|
|
cp ../conf/config.json "$nc_conf" |
|
|
cp ../conf/config.json "$nc_conf" |
|
|
|
|
|
|
|
|
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$nc_conf" |
|
|
|
|
|
ynh_replace_string --match_string="__DATADIR__" --replace_string="$datadir" --target_file="$nc_conf" |
|
|
|
|
|
|
|
|
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="$nc_conf" |
|
|
|
|
|
|
|
|
# Reneable the mail app |
|
|
# Reneable the mail app |
|
|
if [ $mail_app_must_be_reactived -eq 1 ]; then |
|
|
if [ $mail_app_must_be_reactived -eq 1 ]; then |
|
|
@ -458,15 +463,6 @@ ynh_add_fail2ban_config --logpath="/home/yunohost.app/$app/data/nextcloud.log" - |
|
|
|
|
|
|
|
|
#================================================= |
|
|
#================================================= |
|
|
# GENERIC FINALIZATION |
|
|
# GENERIC FINALIZATION |
|
|
#================================================= |
|
|
|
|
|
# SETUP SSOWAT |
|
|
|
|
|
#================================================= |
|
|
|
|
|
ynh_script_progression --message="Upgrading SSOwat configuration..." --weight=2 |
|
|
|
|
|
|
|
|
|
|
|
ynh_app_setting_set --app=$app --key=unprotected_uris --value="/" |
|
|
|
|
|
ynh_app_setting_set --app=$app --key=skipped_regex \ |
|
|
|
|
|
--value="$(sed 's/[\.\-]/\%&/g' <<< $domain)/%.well%-known/.*" |
|
|
|
|
|
|
|
|
|
|
|
#================================================= |
|
|
#================================================= |
|
|
# RELOAD NGINX |
|
|
# RELOAD NGINX |
|
|
#================================================= |
|
|
#================================================= |
|
|
|