From fc47694aeda8271bbda2520d12b9516a1973bb63 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 30 Mar 2022 07:33:52 +0200 Subject: [PATCH] Fix --- manifest.json | 2 +- scripts/install | 14 +++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/manifest.json b/manifest.json index 9c68453..e1b8b3f 100644 --- a/manifest.json +++ b/manifest.json @@ -15,7 +15,7 @@ }, "license": "AGPL-3.0", "maintainer": { - "name": "", + "name": "eric_G", "email": "" }, "requirements": { diff --git a/scripts/install b/scripts/install index b26ee31..be5962a 100755 --- a/scripts/install +++ b/scripts/install @@ -114,14 +114,22 @@ ynh_script_progression --message="Installing $app with Composer..." --weight=15 ynh_install_composer #--install_args="--ignore-platform-reqs" +#================================================= +# ADD A CONFIGURATION +#================================================= +ynh_script_progression --message="Adding a configuration file..." --weight=1 + +# Setup application config +ynh_add_config --template="../conf/.env.example" --destination="$final_path/.env" + +chmod 400 "$final_path/.env" +chown $app:$app "$final_path/.env" + #================================================= # BUILDING #================================================= ynh_script_progression --message="Building..." --weight=10 -# Setup application config -ynh_add_config --template="../conf/.env.example" --destination="$final_path/.env" - # Setup application config pushd $final_path php$phpversion artisan migrate:refresh -n