From a52b68b2da34c284fba266fb971fa8df09d69c7b Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 7 Dec 2006 19:16:22 +0000 Subject: Provision tinydns /etc/tinydns directory upon saving. --- packages/tinydns/tinydns.inc | 22 +++++++++++----------- packages/tinydns/tinydns.xml | 6 ++++++ 2 files changed, 17 insertions(+), 11 deletions(-) (limited to 'packages/tinydns') diff --git a/packages/tinydns/tinydns.inc b/packages/tinydns/tinydns.inc index 4b430ebd..55f5fe69 100644 --- a/packages/tinydns/tinydns.inc +++ b/packages/tinydns/tinydns.inc @@ -31,11 +31,7 @@ function tinydns_custom_php_install_command() { global $g, $config; - conf_mount_rw(); - /* setup daemon tools service area */ - exec("pw useradd Gtinydns"); - exec("pw useradd Gdnslog"); - + conf_mount_rw(); $fd = fopen("/usr/local/etc/rc.d/svscan.sh", "w"); $svscan = << tinydns_custom_php_deinstall_command(); + + tinydns_custom_php_changeip_command(); + tinydns_custom_php_install_command(); + tinydns_custom_php_changeip_command(); + tinydns_create_zone_file(); + /usr/local/pkg/tinydns.inc -- cgit v1.2.3