mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-08-24 21:35:42 +02:00
securo: enable nginx site via nginx_enable_site helper
Replaces the manual symlink + default removal + restart with the core helper, which also runs nginx -t before restarting and enables the unit.
This commit is contained in:
@@ -156,9 +156,7 @@ server {
|
||||
}
|
||||
}
|
||||
EOF
|
||||
ln -sf /etc/nginx/sites-available/securo.conf /etc/nginx/sites-enabled/securo.conf
|
||||
rm -f /etc/nginx/sites-enabled/default
|
||||
systemctl restart nginx
|
||||
nginx_enable_site securo.conf
|
||||
msg_ok "Configured Nginx"
|
||||
|
||||
motd_ssh
|
||||
|
||||
Reference in New Issue
Block a user