init.d/vz: deduce /vz from VE_ROOT/VE_PRIVATE

This is an improvement to commit 4733497. Instead of assuming
that VE_ROOT and VE_PRIVATE is under /vz, find out their common
prefix and use it. In case there's no common prefix (i.e. it is /)
we do nothing.

http://bugzilla.openvz.org/2361

Reported-by: Paparaciz <helpaz@gmail.com>
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
1 file changed