Commit 9bbca9c2 authored by Ad Schellevis's avatar Ad Schellevis

(captiveportal, new) change rc script to use cp instead of rsync (which is not...

(captiveportal, new) change rc script to use cp instead of rsync (which is not installed by default) and change file ownership to chroot user
parent f9451641
......@@ -75,10 +75,12 @@ captiveportal_start()
fi
mkdir $CPWORKDIR/$zonedirname/tmp
chmod 770 $CPWORKDIR/$zonedirname/tmp
chown www:www $CPWORKDIR/$zonedirname/tmp
# sync default template
/usr/local/bin/rsync --delete -ar $CPDEFAULTTEMPLATE/ $CPWORKDIR/$zonedirname/htdocs/
cp -a $CPDEFAULTTEMPLATE/ $CPWORKDIR/$zonedirname/htdocs/
# chown zone files to chroot user
chown -R www:www $CPWORKDIR/$zonedirname
# overlay custom user layout if available.
/usr/local/opnsense/scripts/OPNsense/CaptivePortal/overlay_template.py $zoneid
......
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