diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-12-07 18:57:18 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-12-07 18:57:18 +0000 |
commit | 48ead3bd181e6a5ce01ad96564a2f5a8f8531d5a (patch) | |
tree | 5ef22f9405541a5e6c7d6c657a807a5f22decc3e /packages/tinydns/tinydns.inc | |
parent | 78e6229f73517ce38f424213cca2b1eabfdc6513 (diff) | |
download | pfsense-packages-48ead3bd181e6a5ce01ad96564a2f5a8f8531d5a.tar.gz pfsense-packages-48ead3bd181e6a5ce01ad96564a2f5a8f8531d5a.tar.bz2 pfsense-packages-48ead3bd181e6a5ce01ad96564a2f5a8f8531d5a.zip |
* Bring down additional files
* Correct tinydns listen ip field
Diffstat (limited to 'packages/tinydns/tinydns.inc')
-rw-r--r-- | packages/tinydns/tinydns.inc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/packages/tinydns/tinydns.inc b/packages/tinydns/tinydns.inc index dbe9f537..4b430ebd 100644 --- a/packages/tinydns/tinydns.inc +++ b/packages/tinydns/tinydns.inc @@ -40,7 +40,7 @@ function tinydns_custom_php_install_command() { $svscan = <<<EOD #!/bin/sh -# + # PROVIDE: svscan # REQUIRE: LOGIN # KEYWORD: FreeBSD @@ -99,8 +99,10 @@ function tinydns_custom_php_deinstall_command() { global $g, $config; conf_mount_rw(); /* destroy all daemontools items */ - exec("/usr/sbin/pw userdelete Gtinydns"); - exec("/usr/sbin/pw userdelete Gdnslog"); + exec("/usr/sbin/pw groupdel Gtinydns"); + exec("/usr/sbin/pw groupdel Gdnslog"); + exec("/usr/sbin/pw userdel Gtinydns"); + exec("/usr/sbin/pw userdel Gdnslog"); conf_mount_ro(); } @@ -119,9 +121,8 @@ function tinydns_create_zone_file() { global $g, $config; conf_mount_rw(); $fd = fopen("/service/tinydns/root/data", "w"); - foreach($config['installedpackages']['tinydnsdomains'] as $domain) { + foreach($config['installedpackages']['tinydnsdomains'] as $domain) fwrite($fd, $domain['recordtype'] . ":" . $domain['hostname'] . "\n"); - } fclose($fd); /* tell tinydns to reload zone file */ exec("cd /service/tinydns/root && /usr/local/bin/tinydns-data"); |