From 686faeab1a7aac13e992b4b3d9d3bd2d4ea727dd Mon Sep 17 00:00:00 2001 From: Warren Baker Date: Mon, 31 Jan 2011 19:56:10 +0200 Subject: Remove cache dump at uninstall time and utilize unlink(). --- config/unbound/unbound.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'config/unbound') 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 -- cgit v1.2.3