Browse Source

Correct problem in a awk command

master
nemo 3 years ago
parent
commit
64d591a266
  1. 2
      deploy_vm.sh

2
deploy_vm.sh

@ -447,7 +447,7 @@ if [ "${VM_DISK_EXTEND}" -ne 0 ]; then
echo "INFO : Add new PV to default VG... (vgextend <defaultVG> /dev/vda4)"
ssh ${SSH_OPT} ${SSH_HOST} 'vgextend $(vgs | awk "/vg/ {print $1}") /dev/vda4' &> /dev/null
ssh ${SSH_OPT} ${SSH_HOST} 'vgextend $(vgs | grep vg | tr -s " " | cut -d" " -f2) /dev/vda4' &> /dev/null
if [ $? -ne 0 ]; then
echo 'ERROR : problem during add new PV in VG, please finish manually the deploy OR delete VM and IPAM information'

Loading…
Cancel
Save