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
CPZONES=`cat /usr/local/etc/captiveportal.conf | grep "\[zone_" | sed 's/\[zone_//' | sed 's/\]//'`
# initialize captiveportal work directory
if [ ! -d $CPWORKDIR ]; then
mkdir -p $CPWORKDIR
fi
mkdir -p $CPWORKDIR
# startup API dispatcher, forwards captive portal api request to shared OPNsense API
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