From 1715f207d733c89e3e362fd8d4b4f7737c5c780f Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 14 May 2021 08:05:54 +0200 Subject: [PATCH] Update install --- scripts/install | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/scripts/install b/scripts/install index 92bce99..c4ed278 100755 --- a/scripts/install +++ b/scripts/install @@ -109,6 +109,16 @@ ynh_script_progression --message="Setuping a cron..." ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app" +#================================================= +# GENERIC FINALIZATION +#================================================= +# SECURE FILES AND DIRECTORIES +#================================================= + +# Set permissions to app files +chown -R $app: $final_path +chmod 600 $final_path/.env + #================================================= # SETUP APPLICATION WITH CURL #================================================= @@ -130,16 +140,6 @@ ynh_local_curl "/cp-install/create-superadmin" "email=$email" "username=$admin" ynh_permission_update --permission="main" --remove="visitors" -#================================================= -# GENERIC FINALIZATION -#================================================= -# SECURE FILES AND DIRECTORIES -#================================================= - -# Set permissions to app files -chown -R $app: $final_path -chmod 600 $final_path/.env - #================================================= # SETUP SSOWAT #=================================================