From c32e76339d43e795a8fe63160791df2a14a44147 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Fri, 19 May 2017 22:30:32 +0200 Subject: [PATCH] Fix admin and private --- scripts/install | 5 +++-- scripts/upgrade | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index e8896a2..1ac3756 100755 --- a/scripts/install +++ b/scripts/install @@ -127,10 +127,11 @@ sudo chmod -R 700 $var_root # SETUP SSOWAT #================================================= -ynh_app_setting_set $app skipped_uris "/" +ynh_app_setting_set $app unprotected_uris "/" if [ $is_public -eq 0 ] then - ynh_app_setting_set $app protected_regex "jirafeau/$" + domain_regex=$(echo "$domain" | sed 's@-@.@g') + ynh_app_setting_set $app protected_regex "$domain_regex$path_url/$","$domain_regex$path_url/admin.php.*$" fi #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 1c20210..7a549d8 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -137,10 +137,11 @@ sudo chmod -R 700 $var_root # SETUP SSOWAT #================================================= -ynh_app_setting_set $app skipped_uris "/" +ynh_app_setting_set $app unprotected_uris "/" if [ $is_public -eq 0 ] then - ynh_app_setting_set $app protected_regex "jirafeau/$" + domain_regex=$(echo "$domain" | sed 's@-@.@g') + ynh_app_setting_set $app protected_regex "$domain_regex$path_url/$","$domain_regex$path_url/admin.php.*$" fi #=================================================