[PHP-FPM] Include more modules for upcoming features and Nextcloud support, drop ro flag; [Watchdog] Some fixes and changes

This commit is contained in:
andryyy
2017-10-08 22:47:52 +02:00
parent 7db5877644
commit 72995ff98e
4 changed files with 40 additions and 21 deletions

View File

@@ -82,16 +82,4 @@ if [[ ! -z ${DOMAIN_ARRAY} ]]; then
done
fi
# Socket access
DOCKER_SOCKET=/var/run/docker.sock
DOCKER_GROUP=docker
REGULAR_USER=www-data
if [ -S ${DOCKER_SOCKET} ]; then
DOCKER_GID=$(stat -c '%g' ${DOCKER_SOCKET})
delgroup $(stat -c '%G' ${DOCKER_SOCKET})
addgroup -g ${DOCKER_GID} ${DOCKER_GROUP}
adduser ${REGULAR_USER} ${DOCKER_GROUP}
fi
exec "$@"