Преглед изворни кода

Fix MySQL for service editor

Serghey Rodin пре 9 година
родитељ
комит
fd507a8b08
2 измењених фајлова са 2 додато и 0 уклоњено
  1. 1 0
      bin/v-change-sys-service-config
  2. 1 0
      bin/v-open-fs-config

+ 1 - 0
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);;

+ 1 - 0
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"