Update vm_list
This commit is contained in:
parent
7bcdd02c9e
commit
cdd7779e2c
1 changed files with 1 additions and 1 deletions
2
vm_list
2
vm_list
|
@ -6,7 +6,7 @@
|
|||
uid_list=( $(ldapsearch -x -H ldaps://ldap1.ungleich.ch:636 -D cn=manager,dc=ungleich,dc=ch -w $1 -b "ou=$2,dc=ungleich,dc=ch" | grep uid: | awk '{print $2}') )
|
||||
|
||||
for ((i=0; i<${#uid_list[@]}; i++)) do
|
||||
list_email[$i]=$(ldapsearch -x -H ldaps://ldap1.ungleich.ch:636 -D cn=manager,dc=ungleich,dc=ch -w $1 -b "uid=${uid_list[$i]},ou=customer,dc=ungleich,dc=ch" | grep mail: | awk '{print $2}' )
|
||||
list_email[$i]=$(ldapsearch -x -H ldaps://ldap1.ungleich.ch:636 -D cn=manager,dc=ungleich,dc=ch -w $1 -b "uid=${uid_list[$i]},ou=$2,dc=ungleich,dc=ch" | grep mail: | awk '{print $2}' )
|
||||
list_vmid=()
|
||||
list_vmid=( $(onevm list | grep ${list_email[$i]} | grep runn | awk '{print $1}' ) )
|
||||
for ((j=0; j<${#list_vmid[@]}; j++)) do
|
||||
|
|
Loading…
Reference in a new issue