[Bug 348850] [NEW] syntax error in vzmigrate script (line 382)

Guido Nickels gsn at kernel-oops.de
Thu Mar 26 08:15:43 UTC 2009


Public bug reported:

Binary package hint: vzctl

Hi!

When trying to do an online migration, the vzmigrate script throws the
following error: "[: 386: missing ]"

Reason: In line 382 of /usr/sbin/vzmigrate script, you will find the
following code:

if [ $? != 20 && $? != 21 && $? != 0 ]; then

This is not working because test doesn't accept "&&".

Fix:

if [ $? != 20 -a $? != 21 -a $? != 0 ]; then

or:

if [ $? != 20 ] && [ $? != 21 ] && [ $? != 0 ]; then

As this seems to break online migration completely, I consider it quite
important to be fixed.

Regards,

Guido

** Affects: vzctl (Ubuntu)
     Importance: Undecided
         Status: New

-- 
syntax error in vzmigrate script (line 382)
https://bugs.launchpad.net/bugs/348850
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list