Commit 77e37862 authored by Franco Fichtner's avatar Franco Fichtner

captive portal: mkdir -p is enough :)

parent 397ba442
...@@ -31,9 +31,7 @@ CPDEFAULTTEMPLATE="/usr/local/opnsense/scripts/OPNsense/CaptivePortal/htdocs_def ...@@ -31,9 +31,7 @@ CPDEFAULTTEMPLATE="/usr/local/opnsense/scripts/OPNsense/CaptivePortal/htdocs_def
CPZONES=`cat /usr/local/etc/captiveportal.conf | grep "\[zone_" | sed 's/\[zone_//' | sed 's/\]//'` CPZONES=`cat /usr/local/etc/captiveportal.conf | grep "\[zone_" | sed 's/\[zone_//' | sed 's/\]//'`
# initialize captiveportal work directory # initialize captiveportal work directory
if [ ! -d $CPWORKDIR ]; then mkdir -p $CPWORKDIR
mkdir -p $CPWORKDIR
fi
# startup API dispatcher, forwards captive portal api request to shared OPNsense API # startup API dispatcher, forwards captive portal api request to shared OPNsense API
if [ -f /var/run/lighttpd-api-dispatcher.pid ]; then if [ -f /var/run/lighttpd-api-dispatcher.pid ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment