1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jirafeau_ynh.git synced 2024-09-03 19:35:53 +02:00

Fix admin and private

This commit is contained in:
Maniack Crudelis 2017-05-19 22:30:32 +02:00
parent bb2deea9ba
commit c32e76339d
2 changed files with 6 additions and 4 deletions

View file

@ -127,10 +127,11 @@ sudo chmod -R 700 $var_root
# SETUP SSOWAT # SETUP SSOWAT
#================================================= #=================================================
ynh_app_setting_set $app skipped_uris "/" ynh_app_setting_set $app unprotected_uris "/"
if [ $is_public -eq 0 ] if [ $is_public -eq 0 ]
then 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 fi
#================================================= #=================================================

View file

@ -137,10 +137,11 @@ sudo chmod -R 700 $var_root
# SETUP SSOWAT # SETUP SSOWAT
#================================================= #=================================================
ynh_app_setting_set $app skipped_uris "/" ynh_app_setting_set $app unprotected_uris "/"
if [ $is_public -eq 0 ] if [ $is_public -eq 0 ]
then 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 fi
#================================================= #=================================================