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 #=================================================