mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 23:18:42 +01:00
net/nut: Protect CGI via HTTP Basic Auth
When using uhttpd (the default), protect NUT CGI via HTTP Basic Auth. Signed-off-by: Daniel Dickinson <lede@cshore.thecshore.com>
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
grep -q '/cgi-bin/nut' /etc/httpd.conf 2>/dev/null || {
|
||||
echo '/cgi-bin/nut:root:$p$root' >>/etc/httpd.conf
|
||||
/etc/init.d/uhttpd restart
|
||||
}
|
||||
Reference in New Issue
Block a user