0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2025-01-13 22:51:08 -05:00

Merge pull request #1003 from mholt/sysvinit-fix-setcap

dist/init/linux-sysvinit: execute setcap directly
This commit is contained in:
Daniel van Dorp 2016-08-05 16:49:24 +02:00 committed by GitHub
commit 985049e0c2

View file

@ -22,7 +22,7 @@ LOGFILE=/var/log/$NAME.log
CONFIGFILE=/etc/caddy/Caddyfile
DAEMONOPTS="-agree=true -pidfile=$PIDFILE -log=$LOGFILE -conf=$CONFIGFILE"
USERBIND="$(which setcap) cap_net_bind_service=+ep"
USERBIND="setcap cap_net_bind_service=+ep"
STOP_SCHEDULE="${STOP_SCHEDULE:-QUIT/5/TERM/5/KILL/5}"
test -x $DAEMON || exit 0