Files
apache2-php/bin/container-bootstrap.sh
2017-06-15 08:28:08 +02:00

14 lines
245 B
Bash
Executable File

#!/bin/bash
# Give apache user same uid as owener of wwwroot to avoid problems on upload.
if [ -d "/sources" ]
then
userdel phpuser
USERID=$(stat -c "%u" /sources)
usermod -u $USERID www-data
fi
# Start supervisor
/usr/bin/supervisord