Increase shared memory available in docker to ensure H.264 cameras can work

Also enable CGI module, as zoneminder needs this for monitors
This commit is contained in:
Sander Alberink 2016-02-01 12:35:45 +01:00
parent b99e7b6500
commit baa305c0ed
1 changed files with 7 additions and 0 deletions

View File

@ -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