Files
apache2-php/bin/container-bootstrap.sh
2017-08-08 14:46:20 +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