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
07fbcd5b47
commit
c5ad3437a9
1 changed files with 6 additions and 2 deletions
|
@ -65,10 +65,14 @@ then
|
|||
path_url="$new_path"
|
||||
# Create a dedicated nginx config
|
||||
ynh_add_nginx_config
|
||||
if [ "$new_path" == "/" ]
|
||||
fi
|
||||
|
||||
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"
|
||||
elif
|
||||
fi
|
||||
|
||||
if [ $change_path -eq 1 ] && [ "$new_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"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue