From fd507a8b086d6b8a4b4d77c1e827ae1b0fb060a0 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Thu, 24 Nov 2016 14:35:15 +0200 Subject: [PATCH] Fix MySQL for service editor --- bin/v-change-sys-service-config | 1 + bin/v-open-fs-config | 1 + 2 files changed, 2 insertions(+) diff --git a/bin/v-change-sys-service-config b/bin/v-change-sys-service-config index 521a7be7..d6977459 100755 --- a/bin/v-change-sys-service-config +++ b/bin/v-change-sys-service-config @@ -44,6 +44,7 @@ case $service in proftpd) dst=$(find /etc/proftpd* -name 'proftpd.conf');; php) dst=$(find /etc/php* -name php.ini);; mysql) dst=$(find /etc/my* -name my.cnf);; + mysqld) dst=$(find /etc/my* -name my.cnf);; mariadb) dst=$(find /etc/my* -name my.cnf);; postgresql) dst=$($BIN/v-list-sys-pgsql-config plain |cut -f 1);; postgresql-hba) dst=$($BIN/v-list-sys-pgsql-config plain |cut -f 2);; diff --git a/bin/v-open-fs-config b/bin/v-open-fs-config index 807bbec9..6a4f54fd 100755 --- a/bin/v-open-fs-config +++ b/bin/v-open-fs-config @@ -29,6 +29,7 @@ if [ ! -z "$src_file" ]; then rpath=$(readlink -f "$src_file") services="nginx|apache|httpd|php|ftp|bind|named|exim|dovecot|spamassassin" services="$services|clam|mysql|postgresql|pgsql|cron|fail2ban|iptables" + services="$services|my.cnf" spath=$(echo "$rpath" |egrep "$services") if [ -z "$spath" ]; then echo "Error: invalid source path $src_file"