Correct problem in a awk command

This commit is contained in:
nemo 2019-09-09 18:54:18 +02:00
parent 4f6aeb0b6b
commit 64d591a266

View file

@ -447,7 +447,7 @@ if [ "${VM_DISK_EXTEND}" -ne 0 ]; then
echo "INFO : Add new PV to default VG... (vgextend <defaultVG> /dev/vda4)" 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 if [ $? -ne 0 ]; then
echo 'ERROR : problem during add new PV in VG, please finish manually the deploy OR delete VM and IPAM information' echo 'ERROR : problem during add new PV in VG, please finish manually the deploy OR delete VM and IPAM information'