From a61fc8ded9d7327339ee9abfb4efa9549c7b19d7 Mon Sep 17 00:00:00 2001 From: Thatoo Date: Thu, 14 Dec 2023 18:31:00 +0100 Subject: [PATCH] Update install - reload nginx after adding nginx conf file This way, nginx is reloaded after adding the nginx conf, not before and it would make federation working right away after install, no need for the installer to restart nginx after install. --- scripts/install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 2c1fe1c..dba20fb 100755 --- a/scripts/install +++ b/scripts/install @@ -40,15 +40,15 @@ chmod +x -R "$install_dir/conduit" #================================================= ynh_script_progression --message="Adding system configurations related to $app..." --weight=1 -# Create a dedicated NGINX config using the conf/nginx.conf template -ynh_add_nginx_config - # Create .well-known redirection for access by federation if yunohost --output-as plain domain list | grep -q "^$server_name$" then ynh_add_config --template="server_name.conf" --destination="/etc/nginx/conf.d/${server_name}.d/${app}_server_name.conf" fi +# Create a dedicated NGINX config using the conf/nginx.conf template +ynh_add_nginx_config + # Create a dedicated systemd config ynh_add_systemd_config