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