From e64e1099bc464c345e8e7d83b505526d89d83785 Mon Sep 17 00:00:00 2001 From: Oliver Gwyther Date: Mon, 15 Apr 2024 22:24:38 +0100 Subject: [PATCH] Fix service parameters for netbox install script and update NGINX RP config. --- netbox/install.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/netbox/install.sh b/netbox/install.sh index b305de2..968ad1f 100644 --- a/netbox/install.sh +++ b/netbox/install.sh @@ -105,14 +105,17 @@ chown -R netbox:netbox /opt/netbox/netbox/media chown -R netbox:netbox /opt/netbox/netbox/static chown -R netbox:netbox /opt/netbox/netbox/media/reports -# Restart services -echo "Restarting services..." -systemctl restart nginx -systemctl restart redis-server -systemctl restart postgresql +# Enable and start services +echo "Enabling and starting services..." +systemctl enable netbox +systemctl enable redis-server +systemctl enable postgresql +systemctl start netbox +systemctl start redis-server +systemctl start postgresql # NGINX reverse proxy config -echo "NGINX reverse proxy configuration for Netbox:" +echo "Example NGINX reverse proxy configuration for Netbox:" echo " server { listen 80;