aboutsummaryrefslogtreecommitdiffstats
path: root/config/tinydns
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-03-24 15:30:40 +0000
committerErmal <eri@pfsense.org>2010-03-24 15:30:40 +0000
commit49d3519e11e9b262e7230711b01fd7a0f6ebcb87 (patch)
treee3151a6d7e3990ddec5bf8d2e8ff41083af6a74e /config/tinydns
parentfbd4780bbad7cd2803e44e0e43ce486ba279da1e (diff)
downloadpfsense-packages-49d3519e11e9b262e7230711b01fd7a0f6ebcb87.tar.gz
pfsense-packages-49d3519e11e9b262e7230711b01fd7a0f6ebcb87.tar.bz2
pfsense-packages-49d3519e11e9b262e7230711b01fd7a0f6ebcb87.zip
Clean directories before running.
Diffstat (limited to 'config/tinydns')
-rw-r--r--config/tinydns/tinydns.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/tinydns/tinydns.inc b/config/tinydns/tinydns.inc
index b95faa76..b4fe0f3c 100644
--- a/config/tinydns/tinydns.inc
+++ b/config/tinydns/tinydns.inc
@@ -176,6 +176,8 @@ function tinydns_custom_php_changeip_command() {
exec("/usr/sbin/pw useradd Gdnslog");
exec("/usr/sbin/pw useradd Gdnscache");
exec("/usr/sbin/pw useradd Gaxfrdns");
+ exec("/bin/rm -r /etc/dnscache*");
+ exec("/bin/rm -r /service/dnscache*");
/* TinyDNS Server */
exec("/usr/local/bin/tinydns-conf Gtinydns Gdnslog /etc/tinydns {$dnsserverip}");