소스 검색

replaced shell_list function

Serghey Rodin 9 년 전
부모
커밋
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
 # Parsing db hosts
 conf="$VESTA/conf/mysql.conf"
 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)
 check_row=$(echo "$hosts" |wc -l)
 if [ 0 -eq "$check_row" ]; then
 if [ 0 -eq "$check_row" ]; then
     exit
     exit

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

@@ -37,9 +37,7 @@ fi
 
 
 # Parsing db hosts
 # Parsing db hosts
 conf="$VESTA/conf/pgsql.conf"
 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)
 check_row=$(echo "$hosts" |wc -l)
 if [ 0 -eq "$check_row" ]; then
 if [ 0 -eq "$check_row" ]; then
     exit
     exit