From 738a270d5faadbec410f6647413fc29bfb5b622e Mon Sep 17 00:00:00 2001 From: Robles Rodolphe Date: Sat, 18 Dec 2021 22:01:09 +0100 Subject: [PATCH] try use ynh_add_config to replace cp -a --- scripts/install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 29a76b9..2399a2f 100644 --- a/scripts/install +++ b/scripts/install @@ -83,8 +83,8 @@ ynh_add_fpm_config --package="$extra_php_dependencies" #================================================= ynh_script_progression --message="Adding a configuration file..." --weight=5 -# copy config.dist.php creating config.local.php -cp -a $final_path/config.dist.php $final_path/config.local.php +# copy config.dist.php create config.local.php +ynh_add_config --template="config.dist.php" --destination="$final_path/config.local.php" # create a key for the secret key CSFR; key=$(ynh_string_random --length=50) # edit config.local.php