mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-29 19:59:36 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user