diff --git a/utils/docker/start.sh b/utils/docker/start.sh index 76ad3dcbb..e5730c279 100644 --- a/utils/docker/start.sh +++ b/utils/docker/start.sh @@ -1,5 +1,9 @@ #!/bin/bash +# Prepare proper amount of shared memory +umount /dev/shm +mount -t tmpfs -o rw,nosuid,nodev,noexec,relatime,size=2048M tmpfs /dev/shm + # Start MySQL /usr/bin/mysqld_safe & @@ -27,6 +31,9 @@ mysql -u root < db/zm_create.sql # Add the ZoneMinder DB user mysql -u root -e "grant insert,select,update,delete,lock tables,alter on zm.* to 'zm'@'localhost' identified by 'zm'" +# Activate CGI +a2enmod cgi + # Restart apache service apache2 restart