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