diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-10-26 00:22:15 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-10-26 00:22:15 +0000 |
commit | fe855bb7ebf7327bea27fe1f79652436bc82dc10 (patch) | |
tree | e9f748cd45eb92725c7206933763e56da93215d0 | |
parent | 78bbaebbfe48ec73edb7ee3d2633823b88e78531 (diff) | |
download | pfsense-packages-fe855bb7ebf7327bea27fe1f79652436bc82dc10.tar.gz pfsense-packages-fe855bb7ebf7327bea27fe1f79652436bc82dc10.tar.bz2 pfsense-packages-fe855bb7ebf7327bea27fe1f79652436bc82dc10.zip |
Use unlink_if_exists() instead of unlink()
-rwxr-xr-x | packages/openvpn-client-export/openvpn-client-export.inc | 2 |
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}"); } |