[fix] Use ps to check if MySQL is running in conf_regen hook (fix #232)

This commit is contained in:
Jérôme Lebleu 2016-05-12 23:57:48 +02:00
parent ec887626b5
commit 3cc8f52bc8

View file

@ -17,7 +17,7 @@ do_post_regen() {
. /usr/share/yunohost/helpers.d/string
# ensure that mysql is running
service mysql status >/dev/null 2>&1 \
ps -C mysqld >/dev/null 2>&1 \
|| service mysql start
# generate and set new root password