mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Use ps to check if MySQL is running in conf_regen hook (fix #232)
This commit is contained in:
parent
ec887626b5
commit
3cc8f52bc8
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ do_post_regen() {
|
||||||
. /usr/share/yunohost/helpers.d/string
|
. /usr/share/yunohost/helpers.d/string
|
||||||
|
|
||||||
# ensure that mysql is running
|
# ensure that mysql is running
|
||||||
service mysql status >/dev/null 2>&1 \
|
ps -C mysqld >/dev/null 2>&1 \
|
||||||
|| service mysql start
|
|| service mysql start
|
||||||
|
|
||||||
# generate and set new root password
|
# generate and set new root password
|
||||||
|
|
Loading…
Add table
Reference in a new issue