aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-10-26 00:22:15 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-10-26 00:22:15 +0000
commitfe855bb7ebf7327bea27fe1f79652436bc82dc10 (patch)
treee9f748cd45eb92725c7206933763e56da93215d0
parent78bbaebbfe48ec73edb7ee3d2633823b88e78531 (diff)
downloadpfsense-packages-fe855bb7ebf7327bea27fe1f79652436bc82dc10.tar.gz
pfsense-packages-fe855bb7ebf7327bea27fe1f79652436bc82dc10.tar.bz2
pfsense-packages-fe855bb7ebf7327bea27fe1f79652436bc82dc10.zip
Use unlink_if_exists() instead of unlink()
-rwxr-xr-xpackages/openvpn-client-export/openvpn-client-export.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/openvpn-client-export/openvpn-client-export.inc b/packages/openvpn-client-export/openvpn-client-export.inc
index 124d775a..222fe71b 100755
--- a/packages/openvpn-client-export/openvpn-client-export.inc
+++ b/packages/openvpn-client-export/openvpn-client-export.inc
@@ -50,7 +50,7 @@ function openvpn_client_export_deinstall() {
$ovpndir = "/usr/local/share/openvpn";
$workdir = "{$ovpndir}/client-export";
- unlink("/usr/local/www/{$phpfile}");
+ unlink_if_exists("/usr/local/www/{$phpfile}");
exec("/bin/rm -r {$workdir}");
}