summaryrefslogtreecommitdiff
path: root/swat/install
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@samba.org>2005-07-28 14:09:55 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:30:10 -0500
commitb1e8d70123e7e650a5799a054aa1acbf944387f7 (patch)
treefb3fd83d87ed8cd3d71e27ebeecbd3a52c9d1115 /swat/install
parentbaf42db0a8cad82d321e08756796fde92e867e74 (diff)
downloadsamba-b1e8d70123e7e650a5799a054aa1acbf944387f7.tar.gz
samba-b1e8d70123e7e650a5799a054aa1acbf944387f7.tar.bz2
samba-b1e8d70123e7e650a5799a054aa1acbf944387f7.zip
r8830: Fix provision script after data split
(This used to be commit 99d676d732dffbbf428cc0f012da26c47e6bb66d)
Diffstat (limited to 'swat/install')
-rw-r--r--swat/install/provision.esp11
1 files changed, 7 insertions, 4 deletions
diff --git a/swat/install/provision.esp b/swat/install/provision.esp
index d941fa0e61..0072247b50 100644
--- a/swat/install/provision.esp
+++ b/swat/install/provision.esp
@@ -37,14 +37,15 @@ f.element[7].label = "Host IP";
f.element[7].name = "HOSTIP";
f.element[8].label = "Default Site";
f.element[8].name = "DEFAULTSITE";
-f.submit[0] = "Provision";
-f.submit[1] = "Cancel";
+f.submit[0] = "Initial provision";
+f.submit[1] = "Provision";
+f.submit[2] = "Cancel";
if (form['submit'] == "Cancel") {
redirect("/");
}
-if (form['submit'] == "Provision") {
+if ((form['submit'] == "Provision") || (form['submit'] == "Initial provision")) {
for (r in form) {
subobj[r] = form[r];
}
@@ -57,7 +58,9 @@ for (i=0;i<f.element.length;i++) {
lp.set("realm", subobj.REALM);
if (form['submit'] == "Provision") {
- provision(subobj, writefln);
+ provision(subobj, writefln, true);
+} else if (form['submit'] == "Initial provision") {
+ provision(subobj, writefln, false);
} else {
f.display();
}