From af97f3221ce880216225e5c040c108192c4d4f01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 17 Jan 2023 21:56:48 +0100 Subject: [PATCH] Update install --- scripts/install | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/install b/scripts/install index 9036cb9..27982e7 100755 --- a/scripts/install +++ b/scripts/install @@ -136,14 +136,6 @@ $final_path/venv/bin/python3 "$final_path/manage.py" collectstatic --no-input chown -R $app:www-data $final_path -#================================================= -# NGINX CONFIGURATION -#================================================= -ynh_script_progression --message="Configuring NGINX web server..." --weight=1 - -# Create a dedicated NGINX config -ynh_add_nginx_config - #================================================= # CREATE DATA DIRECTORY #================================================= @@ -159,6 +151,14 @@ chmod 750 "$datadir" chmod -R o-rwx "$datadir" chown -R $app:www-data "$datadir" +#================================================= +# NGINX CONFIGURATION +#================================================= +ynh_script_progression --message="Configuring NGINX web server..." --weight=1 + +# Create a dedicated NGINX config +ynh_add_nginx_config + #================================================= # SETUP SYSTEMD #=================================================