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

sripts modified, try to resolve change url

This commit is contained in:
Robles Rodolphe 2020-04-10 15:11:59 +02:00
parent ffea248595
commit efd7b5e9c1

View file

@ -79,9 +79,9 @@ 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"
elif [ "$old_path" == "/"] elif [ "$old_path" == "/" ]
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"
else [ "$new_path" != "/" -o "$old_path" != "/"] else [ "$new_path" != "/" -o "$old_path" != "/" ]
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