Serghey Rodin 9 лет назад
Родитель
Сommit
7d08a3a614
2 измененных файлов с 2 добавлено и 6 удалено
  1. 1 3
      bin/v-update-sys-rrd-mysql
  2. 1 3
      bin/v-update-sys-rrd-pgsql

+ 1 - 3
bin/v-update-sys-rrd-mysql

@@ -37,9 +37,7 @@ fi
 
 # Parsing db hosts
 conf="$VESTA/conf/mysql.conf"
-fields='$HOST'
-nohead=1
-hosts=$(shell_list)
+hosts=$(grep HOST $conf |awk '{print $1}' |cut -f 2 -d \')
 check_row=$(echo "$hosts" |wc -l)
 if [ 0 -eq "$check_row" ]; then
     exit

+ 1 - 3
bin/v-update-sys-rrd-pgsql

@@ -37,9 +37,7 @@ fi
 
 # Parsing db hosts
 conf="$VESTA/conf/pgsql.conf"
-fields='$HOST'
-nohead=1
-hosts=$(shell_list)
+hosts=$(grep HOST $conf |awk '{print $1}' |cut -f 2 -d \')
 check_row=$(echo "$hosts" |wc -l)
 if [ 0 -eq "$check_row" ]; then
     exit