etc/init.d/vz*: check for DST_CRONSCRIPT_DIR

Before commits df09d4ed and 00a5a95c we used 'install' to put the cronscript
into DST_CRONSCRIPT_DIR (/etc/cron.d), and it was making sure that DST
dir existed.

Since we're now using 'cat' not 'install' we have to check for DST directory
explicitly. More to say, if there's no /etc/cron.d/ than there's probably
no sense to create it (crond is missing or smth). So just silently exit.

Should fix http://bugzilla.openvz.org/1078

Reported-by: Peter Volkov <pva@gentoo.org>
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
2 files changed