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:
parent
7aaf18cf64
commit
1ceef95ce8
1 changed files with 2 additions and 2 deletions
|
@ -221,14 +221,14 @@ if [ $is_public -eq 1 ]
|
||||||
then
|
then
|
||||||
ynh_app_setting_set --app=$app --key=skipped_uris --value="/"
|
ynh_app_setting_set --app=$app --key=skipped_uris --value="/"
|
||||||
|
|
||||||
# Keep /admin private
|
# Keep /admin private
|
||||||
if [ "$path_url" == "/" ]; then
|
if [ "$path_url" == "/" ]; then
|
||||||
# If the path is /, clear it to prevent any error with the regex.
|
# If the path is /, clear it to prevent any error with the regex.
|
||||||
path_url=""
|
path_url=""
|
||||||
fi
|
fi
|
||||||
# Modify the domain to be used in a regex
|
# Modify the domain to be used in a regex
|
||||||
domain_regex=$(echo "$domain" | sed 's@-@.@g')
|
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
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue