Commit 638aee9d authored by Scotty Logan's avatar Scotty Logan
Browse files

updated start.sh to use authbind

parent 9494989d
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
#! /bin/bash

exec /usr/sbin/apache2ctl -D FOREGROUND -k start
cmd="authbind /usr/sbin/apache2ctl -D FOREGROUND -k start"

[ "$(id -un)" == "www-data" ] || cmd="su -s /bin/sh -c '${cmd}' www-data"

exec $cmd