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

try to debug change_url script

This commit is contained in:
Robles Rodolphe 2020-04-09 18:09:00 +02:00
parent a361f4c846
commit fce9193244

View file

@ -70,10 +70,7 @@ fi
if [ $change_path -eq 1 ] && [ "$new_path" == "/" ] if [ $change_path -eq 1 ] && [ "$new_path" == "/" ]
then 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" 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 else
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" 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 fi