summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/filter.inc5
1 files changed, 4 insertions, 1 deletions
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");
OpenPOWER on IntegriCloud