diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-03-29 16:25:20 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-03-29 16:25:20 +0000 |
commit | 903c6f6aa28582f3187e3de0e0e998c8a31ec457 (patch) | |
tree | 77ad4d52768924f6863e3833f00667e27817f0ec /etc/inc/vslb.inc | |
parent | a53c02196ab519af35efc18be9f597bdf4044558 (diff) | |
download | pfsense-903c6f6aa28582f3187e3de0e0e998c8a31ec457.zip pfsense-903c6f6aa28582f3187e3de0e0e998c8a31ec457.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 54b64a5..1078580 100644 --- a/etc/inc/vslb.inc +++ b/etc/inc/vslb.inc @@ -101,7 +101,8 @@ function slbd_configure() { /* pool name */ $slbdconf .= "\t:poolname={$vspool['name']}:\\\n"; /* remove pool status files so we don't end up with a mismatch */ - unlink("{$g['tmp_path']}/{$vspool['name']}.pool"); + if(file_exists("{$g['tmp_path']}/{$vspool['name']}.pool")) + unlink("{$g['tmp_path']}/{$vspool['name']}.pool"); /* virtual IP */ $slbdconf .= "\t:vip=127.0.0.1:\\\n"; $slbdconf .= "\t:vip-port=666:\\\n"; |