From 0305dfea9281a6234e3d7a0028065128745ac157 Mon Sep 17 00:00:00 2001 From: Andrew Bauer Date: Tue, 16 Jan 2018 20:47:23 -0600 Subject: [PATCH] Update entrypoint.sh --- utils/docker/entrypoint.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/docker/entrypoint.sh b/utils/docker/entrypoint.sh index a3a45511b..d92140c90 100755 --- a/utils/docker/entrypoint.sh +++ b/utils/docker/entrypoint.sh @@ -38,6 +38,9 @@ close_mysql () { echo +# Make sure ZoneMinder can write to the log folder +chown www-data:www-data /var/log/zm + # Configure then start Mysql if [ -n "$MYSQL_SERVER" ] && [ -n "$MYSQL_USER" ] && [ -n "$MYSQL_PASSWORD" ] && [ -n "$MYSQL_DB" ]; then sed -i -e "s/ZM_DB_NAME=zm/ZM_DB_NAME=$MYSQL_USER/g" /etc/zm.conf