fix(romm): remove nginx default.conf during installation

/etc/nginx/conf.d/default.conf was not removed, causing nginx to serve
the default welcome page instead of RomM because conf.d/ is loaded
before sites-enabled/.

Fixes #14736
This commit is contained in:
MickLesk
2026-05-28 07:30:13 +02:00
parent 1fde72e141
commit e9c0807151

View File

@@ -265,6 +265,7 @@ EOF
sed -i "s|alias /var/lib/romm/library/;|alias ${ROMM_BASE}/library/;|" /etc/nginx/sites-available/romm
rm -f /etc/nginx/sites-enabled/default
rm -f /etc/nginx/conf.d/default.conf
ln -sf /etc/nginx/sites-available/romm /etc/nginx/sites-enabled/romm
systemctl restart nginx
systemctl enable -q --now nginx