From 3b39673791cb28b8dd05d08ac25d8d5a99152136 Mon Sep 17 00:00:00 2001 From: Robles Rodolphe Date: Thu, 9 Apr 2020 11:56:03 +0200 Subject: [PATCH] put condition in install and update for config.local.php --- scripts/upgrade | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index e635a93..f186f46 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -147,8 +147,7 @@ fi if [ -e "$backup_conf" ] then - cp -a $backup_conf $final_path/config.local.php - echo "const WWW_URI = '$path_url/';" >> $final_path/config.local.php + cp -a $backup_conf $final_path/config.local.php && echo "const WWW_URI = '$path_url/';" >> $final_path/config.local.php else cp -a $final_path/config.dist.php $final_path/config.local.php ynh_replace_string --match_string="//const WWW_URI = '/asso/';" --replace_string="const WWW_URI = '$path_url/';" --target_file="$final_path/config.local.php"