Permalink
Browse files

add common binaries directories in case when they are not set when ca…

…lling from cron
  • Loading branch information...
1 parent ce8396d commit d16f7251edeac3d4e386fceb016c93bf5a781c03 root committed Jan 31, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 vzfailcnt
View
@@ -17,6 +17,8 @@ our $CONF_DIR = '/etc/vz/conf';
our $SCRIPT_PATH = abs_path(__FILE__);
sub main {
+ $ENV{PATH} = "$ENV{PATH}:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin";
+
if (-f $CONF_OVER) {
read_conf_over($CONF_OVER);
}

0 comments on commit d16f725

Please sign in to comment.