mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 18:49:17 -07:00
improved verifcation for aws workaround
This commit is contained in:
parent
c48560842e
commit
e3d3645131
1 changed files with 2 additions and 2 deletions
|
@ -42,8 +42,8 @@ ip_num=$(echo "$ip_list" | wc -l)
|
|||
vst_ip_list=$(ls $VESTA/data/ips/)
|
||||
vst_ip_num=$(echo "$vst_ip_list" | wc -l)
|
||||
|
||||
if [ "$ip_num" -eq '1' ] && [ "$vst_ip_num" -eq '1' ]; then
|
||||
if [ "$ip_list" != "$vst_ip_list" ]; then
|
||||
if [ ! -z "$vst_ip_list" ] && [ "$vst_ip_num" -eq '1' ]; then
|
||||
if [ $ip_num -eq 1 ] && [ "$ip_list" != "$vst_ip_list" ]; then
|
||||
new=$ip_list
|
||||
old=$vst_ip_list
|
||||
mv $VESTA/data/ips/$old $VESTA/data/ips/$new
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue