mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 13:54:28 -07:00
detecting mariadb in v-list-sys-services
This commit is contained in:
parent
eba0f77478
commit
9791d0b3b3
1 changed files with 5 additions and 0 deletions
|
@ -220,6 +220,11 @@ if [ ! -z "$DB_SYSTEM" ] && [ "$DB_SYSTEM" != 'remote' ]; then
|
|||
proc_name=''
|
||||
service="$db"
|
||||
if [ "$service" = 'mysql' ]; then
|
||||
release=$(cat /etc/debian_version | tr "." "\n" | head -n1)
|
||||
if [ "$release" -eq 11 ]; then
|
||||
service='mariadb'
|
||||
proc_name='mariadbd'
|
||||
fi
|
||||
if [ -d "/etc/sysconfig" ]; then
|
||||
service='mysqld'
|
||||
proc_name='mysqld'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue