aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/tinydns/new_zone_wizard.xml10
1 files changed, 8 insertions, 2 deletions
diff --git a/config/tinydns/new_zone_wizard.xml b/config/tinydns/new_zone_wizard.xml
index 84a3d7d8..bff642b4 100644
--- a/config/tinydns/new_zone_wizard.xml
+++ b/config/tinydns/new_zone_wizard.xml
@@ -233,8 +233,14 @@
tinydns_setup_ping_items();
tinydns_sync_on_changes();
}
-
- Header("Location: /pkg.php?xml=tinydns.xml");
+
+ // If service is running redirect to domains page.
+ // Otherwise redirect to the tinydns settings page.
+ if(is_dir("/service/tinydns"))
+ Header("Location: /pkg.php?xml=tinydns_domains.xml");
+ else
+ Header("Location: /pkg.php?xml=tinydns.xml");
+
]]>
</stepsubmitbeforesave>
</step>