mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 10:37:39 -07:00
replaced shell_list function
This commit is contained in:
parent
742eba74b0
commit
7d08a3a614
2 changed files with 2 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue