init.d/vz-redhat: do not add junk files to a cronjob

Commit 00a5a95c02c05e0070a1dd10b47c90b3715c9ff5 introduced
handling of multiple cron files. The problem is there can
be some unwanted files in SRC_CRONSCRIPT_DIR
(like e.g. vz.rpmnew) which should be ignored.

Do this, using is_ignored_file() shell function from Red Hat's
/etc/init.d/function. In case it's not defined (this is probably
the case for SUSE and Debian/Ubuntu) use own own copy.

Issue reported by Igor Sviridov <sia@23andme.com>.
http://bugzilla.openvz.org/1043

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
1 file changed