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

change url debug

This commit is contained in:
Robles Rodolphe 2020-04-09 18:59:14 +02:00
parent 71c6b63a9b
commit bc06c83494

View file

@ -68,11 +68,11 @@ then
fi
# change the config.local.conf
if [ $change_path -eq 1 ] && [ "$old_path" == "/" ]
if [ $change_path -eq 1 ] && [ "$new_path" == "/" ]
then
ynh_replace_string --match_string="const WWW_URI = '$old_path';" --replace_string="const WWW_URI = '$new_path/';" --target_file="$final_path/config.local.php"
else
ynh_replace_string --match_string="const WWW_URI = '$old_path/';" --replace_string="const WWW_URI = '$new_path';" --target_file="$final_path/config.local.php"
else
ynh_replace_string --match_string="const WWW_URI = '$old_path/';" --replace_string="const WWW_URI = '$new_path/';" --target_file="$final_path/config.local.php"
fi
# Change the domain for nginx