Revert "Fist attempt to fix lintian error init.d-script-not-included-in-package"

This reverts commit f9ae34ae1d.
This commit is contained in:
Emmanuel Papin 2014-11-28 15:36:06 +01:00
parent f9ae34ae1d
commit c3a72892e6
1 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,7 @@
set -e set -e
if [ "$1" = "configure" ]; then if [ "$1" = "configure" ]; then
if [ -e "/etc/init.d/mysql" ]; then
if deb-systemd-invoke start mysql.service; then if deb-systemd-invoke start mysql.service; then
mysqladmin --defaults-file=/etc/mysql/debian.cnf -f reload mysqladmin --defaults-file=/etc/mysql/debian.cnf -f reload
# test if database if already present... # test if database if already present...
@ -17,6 +18,9 @@ if [ "$1" = "configure" ]; then
else else
echo 'NOTE: mysql not running, please start mysql and run dpkg-reconfigure zoneminder when it is running.' echo 'NOTE: mysql not running, please start mysql and run dpkg-reconfigure zoneminder when it is running.'
fi fi
else
echo 'mysql not found, assuming remote server.'
fi
chown www-data:www-data /var/log/zm chown www-data:www-data /var/log/zm
chown www-data:www-data /var/lib/zm/ chown www-data:www-data /var/lib/zm/
if [ -z "$2" ]; then if [ -z "$2" ]; then