1
0
Fork 0
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:
Alexandre Aubin 2022-12-05 19:22:29 +01:00 committed by GitHub
parent f7225b48d8
commit a422b6c16f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,8 +70,8 @@ ynh_permission_update --permission="main" --add="visitors"
if [ $is_public -eq 0 ] if [ $is_public -eq 0 ]
then then
domain_regex=$(echo "$domain" | sed 's@-@.@g') domain_regex=$(echo "$domain" | sed 's@-@.@g')
[ "$path_url" = "/" ] && path_url="" [ "$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.*$" ynh_app_setting_set --app=$app --key=protected_regex --value="$domain_regex$path_url_/$","$domain_regex$path_url_/admin.php.*$"
fi fi
#================================================= #=================================================