mirror of
https://github.com/YunoHost-Apps/jirafeau_ynh.git
synced 2024-09-03 19:35:53 +02:00
Fix upgrade exploding because path_url ends up being empty string ...
This commit is contained in:
parent
f7225b48d8
commit
a422b6c16f
1 changed files with 2 additions and 2 deletions
|
@ -70,8 +70,8 @@ ynh_permission_update --permission="main" --add="visitors"
|
|||
if [ $is_public -eq 0 ]
|
||||
then
|
||||
domain_regex=$(echo "$domain" | sed 's@-@.@g')
|
||||
[ "$path_url" = "/" ] && path_url=""
|
||||
ynh_app_setting_set --app=$app --key=protected_regex --value="$domain_regex$path_url/$","$domain_regex$path_url/admin.php.*$"
|
||||
[ "$path_url" = "/" ] && path_url_="" || path_url_="$path_url"
|
||||
ynh_app_setting_set --app=$app --key=protected_regex --value="$domain_regex$path_url_/$","$domain_regex$path_url_/admin.php.*$"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue