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
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to