mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 13:01:52 -07:00
Fix MySQL for service editor
This commit is contained in:
parent
ec55d245e6
commit
fd507a8b08
2 changed files with 2 additions and 0 deletions
|
@ -44,6 +44,7 @@ case $service in
|
||||||
proftpd) dst=$(find /etc/proftpd* -name 'proftpd.conf');;
|
proftpd) dst=$(find /etc/proftpd* -name 'proftpd.conf');;
|
||||||
php) dst=$(find /etc/php* -name php.ini);;
|
php) dst=$(find /etc/php* -name php.ini);;
|
||||||
mysql) dst=$(find /etc/my* -name my.cnf);;
|
mysql) dst=$(find /etc/my* -name my.cnf);;
|
||||||
|
mysqld) dst=$(find /etc/my* -name my.cnf);;
|
||||||
mariadb) 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) dst=$($BIN/v-list-sys-pgsql-config plain |cut -f 1);;
|
||||||
postgresql-hba) dst=$($BIN/v-list-sys-pgsql-config plain |cut -f 2);;
|
postgresql-hba) dst=$($BIN/v-list-sys-pgsql-config plain |cut -f 2);;
|
||||||
|
|
|
@ -29,6 +29,7 @@ if [ ! -z "$src_file" ]; then
|
||||||
rpath=$(readlink -f "$src_file")
|
rpath=$(readlink -f "$src_file")
|
||||||
services="nginx|apache|httpd|php|ftp|bind|named|exim|dovecot|spamassassin"
|
services="nginx|apache|httpd|php|ftp|bind|named|exim|dovecot|spamassassin"
|
||||||
services="$services|clam|mysql|postgresql|pgsql|cron|fail2ban|iptables"
|
services="$services|clam|mysql|postgresql|pgsql|cron|fail2ban|iptables"
|
||||||
|
services="$services|my.cnf"
|
||||||
spath=$(echo "$rpath" |egrep "$services")
|
spath=$(echo "$rpath" |egrep "$services")
|
||||||
if [ -z "$spath" ]; then
|
if [ -z "$spath" ]; then
|
||||||
echo "Error: invalid source path $src_file"
|
echo "Error: invalid source path $src_file"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue