mirror of https://github.com/aredn/aredn.git
bugfix:
Make sure httpd.conf is up to date on first boot.
This commit is contained in:
parent
d7be9104d9
commit
442b7e9822
|
@ -0,0 +1,20 @@
|
|||
#!/bin/sh
|
||||
|
||||
IFS="
|
||||
"
|
||||
|
||||
addedpaths="/cgi-bin/vpn
|
||||
/cgi-bin/vpnc
|
||||
/cgi-bin/supporttool
|
||||
"
|
||||
|
||||
currentpwd=$(grep "/cgi-bin/setup" /etc/httpd.conf |cut -d ':' -f 3)
|
||||
|
||||
for protectedpath in $addedpaths
|
||||
do
|
||||
if grep -q "$protectedpath" "/etc/httpd.conf"; then
|
||||
continue
|
||||
fi
|
||||
echo "$protectedpath:root:$currentpwd" >> /etc/httpd.conf
|
||||
done
|
||||
|
Loading…
Reference in New Issue