- From: codesite-noreply AT google.com
- To: caudium-commits AT caudium.net
- Subject: [caudium-commits] [caudium commit] r9322 - trunk/caudium/server/etc/upgrade.d/1.5.0
- Date: Tue, 01 Jul 2008 15:30:29 -0700
- Authentication-results: mail01.oav.net (amavisd-new); dkim=pass header.i= AT google.com
- Authentication-results: mail01.oav.net (amavisd-new); domainkeys=pass header.from=codesite-noreply AT google.com
- Domainkey-signature: a=rsa-sha1; c=nofws; d=google.com; s=beta; h=mime-version:message-id:date:subject:from:to:content-type :content-transfer-encoding; b=a7vmM3fDsxg+ntCizsOfOKmH9J9Xk6Q1fdm7YHyT1bsEOGft3heTlmj7Q2P9FbrVGF /XK4zFA7k6QWyy6qccWA==
Author: bill.welliver
Date: Tue Jul 1 15:28:05 2008
New Revision: 9322
Modified:
trunk/caudium/server/etc/upgrade.d/1.5.0/config_interface.pike
Log:
clean up and comments
Modified: trunk/caudium/server/etc/upgrade.d/1.5.0/config_interface.pike
==============================================================================
--- trunk/caudium/server/etc/upgrade.d/1.5.0/config_interface.pike
(original)
+++ trunk/caudium/server/etc/upgrade.d/1.5.0/config_interface.pike Tue
Jul 1 15:28:05 2008
@@ -21,13 +21,14 @@
// the meat of the upgrade task
int upgrade_server()
{
- // if we already have a configuration interface virtual server, we
don't need to
- // continue.
+ // if we already have a configuration interface virtual server, we don't
+ // need to continue.
foreach(caudium->configurations;; object c)
{
if(c->name == "ConfigurationInterface") return 1;
}
+ // the configuration interface vs doesn't exist, so we can create it.
setconfigvar("spider#0", "Ports", GLOBVAR("ConfigPorts"));
setconfigvar("spider#0", "MyWorldLocation", GLOBVAR("ConfigurationURL"));
setconfigvar("spider#0", "name", "Configuration Interface");
@@ -43,14 +44,14 @@
setconfigvar("EnabledModules", "auth_configdefault#0", 1);
setconfigvar("EnabledModules", "filesystem#0", 1);
-
+ // let's clean up the Global Variables config a bit
mapping v = caudium->retrieve("Variables", 0);
m_delete(v, "ConfigPorts");
m_delete(v, "ConfigurationUser");
m_delete(v, "ConfigurationPassword");
-
+ // and finally, we can save our changes.
caudium->save_it("ConfigurationInterface");
caudium->save_it("Global Variables");
- [caudium-commits] [caudium commit] r9322 - trunk/caudium/server/etc/upgrade.d/1.5.0, codesite-noreply, 07/02/2008
Archive powered by MHonArc 2.6.16.