From 012472a4005a0333b1113dd2f06ae316d646fc93 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 15 Sep 2006 18:10:31 +0000 Subject: * Only run the commands.txt file if it exists. * Unlink afterwards --- etc/inc/filter.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'etc/inc/filter.inc') diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index cb387be..178435d 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -241,7 +241,10 @@ function filter_configure_sync() { fwrite($fda, $afcr . "\n"); fclose($fda); } - mwexec("sh /tmp/commands.txt &"); + if(file_exists("/tmp/commands.txt")) { + mwexec("sh /tmp/commands.txt &"); + unlink("sh /tmp/commands.txt"); + } update_filter_reload_status("Syncing CARP data"); -- cgit v1.1