1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/flarum_ynh.git synced 2024-09-03 18:36:24 +02:00

[fix] change_url

This commit is contained in:
tituspijean 2019-09-23 23:30:07 +02:00
parent 147d0a4c40
commit 3d93611a1a

View file

@ -99,7 +99,11 @@ fi
#=================================================
# ...
#=================================================
ynh_replace_string "$old_domain$old_path" "$new_domain$new_path" "$final_path/config.php"
if [ $new_path = "/" ]; then
ynh_replace_string "$old_domain$old_path" "$new_domain" "$final_path/config.php"
else
ynh_replace_string "$old_domain$old_path" "$new_domain$new_path" "$final_path/config.php"
fi
#=================================================
# GENERIC FINALISATION