Skip to content

Commit 7d08a3a

Browse files
author
Serghey Rodin
committed
replaced shell_list function
1 parent 742eba7 commit 7d08a3a

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

bin/v-update-sys-rrd-mysql

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ fi
3737

3838
# Parsing db hosts
3939
conf="$VESTA/conf/mysql.conf"
40-
fields='$HOST'
41-
nohead=1
42-
hosts=$(shell_list)
40+
hosts=$(grep HOST $conf |awk '{print $1}' |cut -f 2 -d \')
4341
check_row=$(echo "$hosts" |wc -l)
4442
if [ 0 -eq "$check_row" ]; then
4543
exit

bin/v-update-sys-rrd-pgsql

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ fi
3737

3838
# Parsing db hosts
3939
conf="$VESTA/conf/pgsql.conf"
40-
fields='$HOST'
41-
nohead=1
42-
hosts=$(shell_list)
40+
hosts=$(grep HOST $conf |awk '{print $1}' |cut -f 2 -d \')
4341
check_row=$(echo "$hosts" |wc -l)
4442
if [ 0 -eq "$check_row" ]; then
4543
exit

0 commit comments

Comments
 (0)