From 99cd96e7743df0f0d0d4ec975dc1376844496df8 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 21 Mar 2021 09:21:20 +0100 Subject: [PATCH] Fix permissions --- scripts/change_url | 3 ++- scripts/upgrade | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index d228ada..a98a4f3 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -146,7 +146,8 @@ ynh_store_file_checksum --file="$config" #================================================= ynh_script_progression --message="Reconfigure SSOwat" -ynh_app_setting_set $app unprotected_uris "/" +ynh_permission_update --permission="main" --add="visitors" + if [ $is_public -eq 0 ] then if [ "$path_url" == "/" ]; then diff --git a/scripts/upgrade b/scripts/upgrade index 493011e..a47faf4 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -199,9 +199,7 @@ popd #================================================= ynh_script_progression --message="Setuping cron..." -cp ../conf/cron_lufi /etc/cron.d/$app -ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path/" --target_file="/etc/cron.d/$app" -ynh_replace_string --match_string="__USER__" --replace_string="$app" --target_file="/etc/cron.d/$app" +ynh_add_config --template="../conf/cron_lufi" --destination="/etc/cron.d/$app" chmod +x $final_path/script/lufi #=================================================