replaced shell_list function

This commit is contained in:
Serghey Rodin 2016-08-25 19:49:15 +03:00
commit 7d08a3a614
2 changed files with 2 additions and 6 deletions

View file

@ -37,9 +37,7 @@ fi
# Parsing db hosts # Parsing db hosts
conf="$VESTA/conf/mysql.conf" conf="$VESTA/conf/mysql.conf"
fields='$HOST' hosts=$(grep HOST $conf |awk '{print $1}' |cut -f 2 -d \')
nohead=1
hosts=$(shell_list)
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

View file

@ -37,9 +37,7 @@ fi
# Parsing db hosts # Parsing db hosts
conf="$VESTA/conf/pgsql.conf" conf="$VESTA/conf/pgsql.conf"
fields='$HOST' hosts=$(grep HOST $conf |awk '{print $1}' |cut -f 2 -d \')
nohead=1
hosts=$(shell_list)
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