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:
parent
68ff57c334
commit
c7b5add13c
1 changed files with 3 additions and 3 deletions
|
@ -68,11 +68,11 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# change the config.local.conf
|
# change the config.local.conf
|
||||||
if [ $change_path -eq 1 ] && [ "$path_url" == "/" ]
|
if [ $change_path -eq 1 ] && [ "$new_path" == "/" ]
|
||||||
then
|
then
|
||||||
ynh_replace_string --match_string="const WWW_URI = '$old_path/';" --replace_string="const WWW_URI = '$path_url';" --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
|
else
|
||||||
ynh_replace_string --match_string="const WWW_URI = '$old_path/';" --replace_string="const WWW_URI = '$path_url/';" --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
|
||||||
|
|
||||||
# Change the domain for nginx
|
# Change the domain for nginx
|
||||||
|
|
Loading…
Reference in a new issue