mirror of
https://github.com/YunoHost-Apps/flarum_ynh.git
synced 2024-09-03 18:36:24 +02:00
parent
3d93611a1a
commit
50697051e1
1 changed files with 10 additions and 2 deletions
|
@ -100,9 +100,17 @@ fi
|
||||||
# ...
|
# ...
|
||||||
#=================================================
|
#=================================================
|
||||||
if [ $new_path = "/" ]; then
|
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
|
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
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue