1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/opensondage_ynh.git synced 2024-09-03 19:46:28 +02:00

Update upgrade

This commit is contained in:
Kayou 2019-06-24 09:40:12 +02:00 committed by GitHub
parent 7aaf18cf64
commit 1ceef95ce8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -221,14 +221,14 @@ if [ $is_public -eq 1 ]
then
ynh_app_setting_set --app=$app --key=skipped_uris --value="/"
# Keep /admin private
# Keep /admin private
if [ "$path_url" == "/" ]; then
# If the path is /, clear it to prevent any error with the regex.
path_url=""
fi
# Modify the domain to be used in a regex
domain_regex=$(echo "$domain" | sed 's@-@.@g')
ynh_app_setting_set $app protected_regex "$domain_regex$path_url/admin/"
ynh_app_setting_set --app=$app -key=protected_regex -value="$domain_regex$path_url/admin/"
fi
#=================================================