1
0
Fork 0
mirror of https://github.com/myvesta/vesta synced 2025-08-13 01:57:57 -07:00

Fix MySQL for service editor

This commit is contained in:
Serghey Rodin 2016-11-24 14:35:15 +02:00
commit fd507a8b08
2 changed files with 2 additions and 0 deletions

View file

@ -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);;

View file

@ -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"