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

Closes #129
This commit is contained in:
tituspijean 2019-09-24 17:44:02 +00:00
parent 3d93611a1a
commit 50697051e1

View file

@ -100,9 +100,17 @@ fi
# ...
#=================================================
if [ $new_path = "/" ]; then
ynh_replace_string "$old_domain$old_path" "$new_domain" "$final_path/config.php"
if [ $old_path = "/" ]; then
ynh_replace_string "://$old_domain" "://$new_domain" "$final_path/config.php"
else
ynh_replace_string "://$old_domain$old_path" "://$new_domain" "$final_path/config.php"
fi
else
ynh_replace_string "$old_domain$old_path" "$new_domain$new_path" "$final_path/config.php"
if [ $old_path = "/" ]; then
ynh_replace_string "://$old_domain" "://$new_domain$new_path" "$final_path/config.php"
else
ynh_replace_string "://$old_domain$old_path" "://$new_domain$new_path" "$final_path/config.php"
fi
fi
#=================================================