From 71983a0345d2b0f18771f4a7e84ed1b4a7f6b43c Mon Sep 17 00:00:00 2001 From: Robles Rodolphe Date: Sat, 11 Apr 2020 16:33:40 +0200 Subject: [PATCH] back to the correct string to replace, I mistake on the last commit --- scripts/install | 2 +- scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 997d3bd..744f84c 100644 --- a/scripts/install +++ b/scripts/install @@ -126,7 +126,7 @@ cp -a $final_path/config.dist.php $final_path/config.local.php # create a key for the secret key CSFR; key=$(ynh_string_random --length=50) # edit config.local.php -ynh_replace_string --match_string="//const SECRET_KEY = '3xUhIgGwuovRKOjVsVPQ5yUMfXUSIOX2GKzcebsz5OINrYC50r';" --replace_string="const SECRET_KEY = '$key';" --target_file="$final_path/config.local.php" +ynh_replace_string --match_string="const SECRET_KEY = '3xUhIgGwuovRKOjVsVPQ5yUMfXUSIOX2GKzcebsz5OINrYC50r';" --replace_string="const SECRET_KEY = '$key';" --target_file="$final_path/config.local.php" if [ "$path_url" == "/" ]; then ynh_replace_string --match_string="//const WWW_URI = '/asso/';" --replace_string="const WWW_URI = '$path_url';" --target_file="$final_path/config.local.php" else diff --git a/scripts/upgrade b/scripts/upgrade index be4b06b..eaeffbf 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -145,7 +145,7 @@ ynh_script_progression --message="final configuration needed..." --time --weight key=$(ynh_string_random --length=50) cp -a $final_path/config.dist.php $final_path/config.local.php -ynh_replace_string --match_string="//const SECRET_KEY = '3xUhIgGwuovRKOjVsVPQ5yUMfXUSIOX2GKzcebsz5OINrYC50r';" --replace_string="const SECRET_KEY = '$key';" --target_file="$final_path/config.local.php" +ynh_replace_string --match_string="const SECRET_KEY = '3xUhIgGwuovRKOjVsVPQ5yUMfXUSIOX2GKzcebsz5OINrYC50r';" --replace_string="const SECRET_KEY = '$key';" --target_file="$final_path/config.local.php" if [ "$path_url" == "/" ] then ynh_replace_string --match_string="//const WWW_URI = '/asso/';" --replace_string="const WWW_URI = '$path_url';" --target_file="$final_path/config.local.php"