Make sure httpd.conf is up to date on first boot.
This commit is contained in:
Conrad Lara - KG6JEI 2015-07-09 16:10:50 -07:00
parent d7be9104d9
commit 442b7e9822
1 changed files with 20 additions and 0 deletions

View File

@ -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