initial commit of file from CVS for smeserver-zoneminder on Sat Sep 7 21:19:42 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 21:19:42 +10:00
parent b982e5614c
commit 91cd950535
27 changed files with 870 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
#!/bin/bash
# check if inodb is enabled for up to SME9
innodb=$(/sbin/e-smith/db configuration getprop mysqld InnoDB || echo "disabled")
if [[ "$innodb" != "enabled" ]]; then
/sbin/e-smith/db configuration setprop mysqld InnoDB enabled
/sbin/e-smith/expand-template /etc/my.cnf
sv t /service/mysqld
sleep 8
fi
# restart mysql.init
/sbin/service zoneminder stop 1>/dev/null
/sbin/service mysql.init restart 1>/dev/null
/sbin/service zoneminder start 1>/dev/null
exit 0