From 1d240652b2befa7277214246aea28a5bf1e4ba1d Mon Sep 17 00:00:00 2001 From: Sebastian Gumprich Date: Sat, 30 Oct 2021 21:34:26 +0200 Subject: [PATCH] fix install --- scripts/install | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 68258ec..c1f9152 100755 --- a/scripts/install +++ b/scripts/install @@ -125,11 +125,14 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #================================================= ynh_script_progression --message="Modifying a config file..." +ynh_add_config --template="default.env" --destination="$final_path/.env" + # generate app key and save it as a environment variable -app_key="php$phpversion artisan key:generate --show" +pushd "$final_path" + app_key="`php$phpversion artisan key:generate --show`" +popd ynh_app_setting_set --app=$app --key=app_key --value=$app_key -ynh_add_config --template="default.env" --destination="$final_path/.env" chmod 400 "$final_path/.env" chown $app:$app "$final_path/.env"