diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-03-29 16:46:15 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-03-29 16:46:15 +0000 |
commit | 7604679a1bd06b5f8ccfe5a2ae50031353f6f02b (patch) | |
tree | c90fe3ce52f1cd2a8abbae56cba6d0b636563d9a /etc/inc/vslb.inc | |
parent | 1833f54d7475e8cbb1a28612dce9a3b896544c58 (diff) | |
download | pfsense-7604679a1bd06b5f8ccfe5a2ae50031353f6f02b.zip pfsense-7604679a1bd06b5f8ccfe5a2ae50031353f6f02b.tar.gz |
Unlink pool file only if it exists
Diffstat (limited to 'etc/inc/vslb.inc')
-rw-r--r-- | etc/inc/vslb.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/vslb.inc b/etc/inc/vslb.inc index 1078580..9008fef 100644 --- a/etc/inc/vslb.inc +++ b/etc/inc/vslb.inc @@ -55,7 +55,8 @@ function slbd_configure() { /* pool name */ $slbdconf .= "\t:poolname={$vsent['name']}:\\\n"; /* remove pool status files so we don't end up with a mismatch */ - unlink("{$g['tmp_path']}/{$vsent['name']}.pool"); + if(file_exists("{$g['tmp_path']}/{$vsent['name']}.pool")) + unlink("{$g['tmp_path']}/{$vsent['name']}.pool"); /* virtual IP */ $slbdconf .= "\t:vip={$vsent['ipaddr']}:\\\n"; /* virtual port */ |