17 lines
505 B
Plaintext
17 lines
505 B
Plaintext
|
#!/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
|