Revert "Attempt to fix error init.d-script-not-included-in-packag"

This reverts commit c84f1b644b.
pull/605/head
Emmanuel Papin 2014-11-28 15:37:35 +01:00
parent c3a72892e6
commit b75bea3e16
1 changed files with 3 additions and 1 deletions

View File

@ -4,7 +4,9 @@ set -e
if [ "$1" = "configure" ]; then
if [ -e "/etc/init.d/mysql" ]; then
if deb-systemd-invoke start mysql.service; then
# Get mysql started if it isn't
deb-systemd-invoke start mysql.service
if deb-systemd-invoke status mysql.service; then
mysqladmin --defaults-file=/etc/mysql/debian.cnf -f reload
# test if database if already present...
if ! $(echo quit | mysql --defaults-file=/etc/mysql/debian.cnf zm > /dev/null 2> /dev/null) ; then