Steps to reproduce
- Have the NethSecurity UI actively serving traffic on port 443 (
ns-ui.config.nsui_enable=1)
- Update the system/package while the UI is being served on that port
Expected behavior
The 00ns.locations nginx configuration file should be updated to the new package version's content on every update.
Actual behavior
The file is not replaced when the UI is actively being served through port 443 during the update. The new content is instead written alongside it as 00ns.locations.apk-new.
Workaround
[ -f /etc/nginx/conf.d/00ns.locations.apk-new ] && mv -f /etc/nginx/conf.d/00ns.locations.apk-new /etc/nginx/conf.d/00ns.locations && /etc/init.d/nginx restart
Components
Affected package: ns-ui 2.23.2
Additional context
Discussion: https://mattermost.nethesis.it/nethesis/pl/ghajfkgcq3d5fdxb7xymco98hc
Steps to reproduce
ns-ui.config.nsui_enable=1)Expected behavior
The
00ns.locationsnginx configuration file should be updated to the new package version's content on every update.Actual behavior
The file is not replaced when the UI is actively being served through port 443 during the update. The new content is instead written alongside it as
00ns.locations.apk-new.Workaround
Components
Affected package: ns-ui 2.23.2
Additional context
Discussion: https://mattermost.nethesis.it/nethesis/pl/ghajfkgcq3d5fdxb7xymco98hc