diff options
author | Warren Baker <warren@decoy.co.za> | 2011-01-31 19:56:10 +0200 |
---|---|---|
committer | Warren Baker <warren@decoy.co.za> | 2011-01-31 19:56:10 +0200 |
commit | 686faeab1a7aac13e992b4b3d9d3bd2d4ea727dd (patch) | |
tree | 24c926d9368553793582a7d753b801218edd897d /config | |
parent | 887ccef4e89a681ea58c28eb601205a5ff98c754 (diff) | |
download | pfsense-packages-686faeab1a7aac13e992b4b3d9d3bd2d4ea727dd.tar.gz pfsense-packages-686faeab1a7aac13e992b4b3d9d3bd2d4ea727dd.tar.bz2 pfsense-packages-686faeab1a7aac13e992b4b3d9d3bd2d4ea727dd.zip |
Remove cache dump at uninstall time and utilize unlink().
Diffstat (limited to 'config')
-rw-r--r-- | config/unbound/unbound.inc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/config/unbound/unbound.inc b/config/unbound/unbound.inc index fc72dde7..0a4efcae 100644 --- a/config/unbound/unbound.inc +++ b/config/unbound/unbound.inc @@ -596,8 +596,9 @@ function unbound_uninstall() { unbound_control("termstop"); // Remove pkg config directory and startup file mwexec("rm -rf /usr/local/etc/unbound"); - mwexec("rm -f /usr/local/etc/rc.d/unbound.sh"); - mwexec("rm -f {$g['varlog_path']}/unbound.log"); + @unlink("/usr/local/etc/rc.d/unbound.sh"); + @unlink("{$g['varlog_path']}/unbound.log"); + @unlink("/var/tmp/unbound_cache"); conf_mount_ro(); @@ -753,4 +754,4 @@ function unbound_add_domain_overrides($pvt=false) { } } -?> +?>
\ No newline at end of file |