aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-03-24 22:04:22 +0000
committerErmal <eri@pfsense.org>2010-03-24 22:04:22 +0000
commitd212dc59718c8c8f5a09b30d7c26cffeb0408964 (patch)
tree996056d18ef719ed5d6c79706bd118d6585698fe /config
parentc181e7211cf4812a12dde5511466ccb6d89bbb0f (diff)
downloadpfsense-packages-d212dc59718c8c8f5a09b30d7c26cffeb0408964.tar.gz
pfsense-packages-d212dc59718c8c8f5a09b30d7c26cffeb0408964.tar.bz2
pfsense-packages-d212dc59718c8c8f5a09b30d7c26cffeb0408964.zip
Ticket #439. Make sure directory exists so files in it can be created.
Diffstat (limited to 'config')
-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 bf53051a..8953df04 100644
--- a/config/tinydns/tinydns.inc
+++ b/config/tinydns/tinydns.inc
@@ -212,6 +212,8 @@ function tinydns_custom_php_changeip_command() {
}
exec("/usr/local/bin/dnscache-conf Gdnscache Gdnslog /etc/dnscache{$dnsidx} {$dnscacheip}");
+ if (!is_dir("/etc/dnscache{$dnsidx}/env/IP"))
+ exec("mkdir -p /etc/dnscache{$dnsidx}/env");
exec("echo {$dnscacheip} > /etc/dnscache{$dnsidx}/env/IP");
tinydns_dnscache_forwarding_servers($dnsidx);
if (!is_dir("/etc/dnscache{$dnsidx}/root/ip"))