Clean envs before running logrotate, so any Webmin scripts don't pick them up
authorJamie Cameron <jcameron@webmin.com>
Mon, 12 Jan 2009 18:19:59 +0000 (18:19 +0000)
committerJamie Cameron <jcameron@webmin.com>
Mon, 12 Jan 2009 18:19:59 +0000 (18:19 +0000)
logrotate/force.cgi
logrotate/images/smallicon.gif

index 86ef3ab..2616033 100755 (executable)
@@ -9,7 +9,9 @@ require './logrotate-lib.pl';
 $SIG{'TERM'} = 'IGNORE';
 
 print $text{'force_doing'},"\n";
+&clean_environment();
 $out = &backquote_logged("$config{'logrotate'} -f $config{'logrotate_conf'} 2>&1");
+&reset_environment();
 print "<pre>$out</pre>";
 if ($?) {
        print $text{'force_failed'},"<br>\n";
index e69de29..81b8fa2 100644 (file)
Binary files a/logrotate/images/smallicon.gif and b/logrotate/images/smallicon.gif differ