Set perl lib in wrapper scripts
authorJamie Cameron <jcameron@webmin.com>
Tue, 22 Sep 2009 22:39:59 +0000 (15:39 -0700)
committerJamie Cameron <jcameron@webmin.com>
Tue, 22 Sep 2009 22:39:59 +0000 (15:39 -0700)
cron/cron-lib.pl

index 6e95384..65eb85e 100755 (executable)
@@ -1043,6 +1043,7 @@ while(<CONF>) {
         \$root = \$1 if (/^root=(.*)/);
         }
 close(CONF);
+\$ENV{'PERLLIB'} = "\$root";
 \$ENV{'WEBMIN_CONFIG'} = "$ENV{'WEBMIN_CONFIG'}";
 \$ENV{'WEBMIN_VAR'} = "$ENV{'WEBMIN_VAR'}";
 EOF