initial commit of file from CVS for smeserver-zoneminder on Sat Sep 7 21:19:42 AEST 2024
This commit is contained in:
16
root/etc/e-smith/events/actions/zoneminder
Normal file
16
root/etc/e-smith/events/actions/zoneminder
Normal 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
|
Reference in New Issue
Block a user