mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Rely on systemd is-active to check if mysql is running
This commit is contained in:
parent
53573e50dc
commit
0b5cc9d6b1
1 changed files with 2 additions and 2 deletions
|
@ -17,8 +17,8 @@ do_post_regen() {
|
|||
. /usr/share/yunohost/helpers.d/string
|
||||
|
||||
# ensure that mysql is running
|
||||
ps -C mysqld >/dev/null 2>&1 \
|
||||
|| service mysql start
|
||||
sudo systemctl -q is-active mysql.service \
|
||||
|| sudo service mysql start
|
||||
|
||||
# generate and set new root password
|
||||
mysql_password=$(ynh_string_random 10)
|
||||
|
|
Loading…
Add table
Reference in a new issue