]> scripts.mit.edu Git - wizard.git/commitdiff
Add more Wordpress variables.
authorEdward Z. Yang <ezyang@mit.edu>
Sat, 21 Nov 2009 02:09:50 +0000 (21:09 -0500)
committerEdward Z. Yang <ezyang@mit.edu>
Sat, 21 Nov 2009 02:09:50 +0000 (21:09 -0500)
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
wizard/app/wordpress.py

index ad0b2fc9f63094a3fc9cba37d96cadc9a4985257..68a451e20cf0fa2758fbddf71892e8e22d6d2bec 100644 (file)
@@ -9,11 +9,16 @@ def make_filename_regex_define(var):
     return 'wp-config.php', php.re_define(var)
 
 seed = util.dictmap(make_filename_regex_define, {
+    # these funny names are due to convention set by MediaWiki
     'WIZARD_DBSERVER': 'DB_HOST',
     'WIZARD_DBNAME': 'DB_NAME',
     'WIZARD_DBUSER': 'DB_USER',
     'WIZARD_DBPASSWORD': 'DB_PASSWORD',
     'WIZARD_SECRETKEY': 'SECRET_KEY',
+    'WIZARD_AUTH_KEY': 'AUTH_KEY',
+    'WIZARD_SECURE_AUTH_KEY': 'SECURE_AUTH_KEY',
+    'WIZARD_LOGGED_IN_KEY': 'LOGGED_IN_KEY',
+    'WIZARD_NONCE_KEY': 'NONCE_KEY',
     })
 # XXX: I have omitted an implementation for table prefix, on grounds that we
 # do not permit it to be configured. If we do end up growing support for
@@ -26,6 +31,7 @@ class Application(app.Application):
     substitutions = app.make_substitutions(seed)
     substitutions.update(php.substitutions)
     install_schema = install.ArgSchema("mysql", "email", "title")
+    deprecated_keys = set(['WIZARD_SECRETKEY'])
     def download(self, version):
         return "http://wordpress.org/wordpress-%s.tar.gz" % version
     def checkConfig(self, deployment):