From 95516502911fb6ba15f7aee36b7a59e7dcbe95e3 Mon Sep 17 00:00:00 2001 From: Robles Rodolphe Date: Fri, 28 Aug 2020 15:50:58 +0200 Subject: [PATCH] remove key added with yunohost on install and upgarde script --- scripts/install | 4 ++-- scripts/upgrade | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index ec67600..d8c46ac 100644 --- a/scripts/install +++ b/scripts/install @@ -120,9 +120,9 @@ fi # copy config.dist.php creating config.local.php 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) +# 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 a708b02..d21dccf 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -155,9 +155,9 @@ ynh_add_fpm_config #================================================= ynh_script_progression --message="final configuration needed..." --time --weight=1 -key=$(ynh_string_random --length=50) +# 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"