X-Git-Url: https://scripts.mit.edu/gitweb/wizard.git/blobdiff_plain/31253eca10ab83a98b0921ac6bbbb22b90ff2af3..0f0d3e3da4c7fe6d3cd824b8fb9126c7758ead4a:/wizard/app/wordpress.py?ds=sidebyside diff --git a/wizard/app/wordpress.py b/wizard/app/wordpress.py index ab80825..a068fb8 100644 --- a/wizard/app/wordpress.py +++ b/wizard/app/wordpress.py @@ -24,45 +24,37 @@ seed = util.dictmap(make_filename_regex_define, { }) class Application(app.Application): + database = "mysql" parametrized_files = ['wp-config.php'] + php.parametrized_files extractors = app.make_extractors(seed) extractors.update(php.extractors) substitutions = app.make_substitutions(seed) substitutions.update(php.substitutions) - install_schema = install.ArgSchema("mysql", "email", "title") + install_schema = install.ArgSchema("db", "email", "title") deprecated_keys = set(['WIZARD_SECRETKEY']) + random_keys = set(['WIZARD_SECRETKEY', 'WIZARD_AUTH_KEY', 'WIZARD_SECURE_AUTH_KEY', 'WIZARD_LOGGED_IN_KEY', 'WIZARD_NONCE_KEY']) def download(self, version): return "http://wordpress.org/wordpress-%s.tar.gz" % version def checkConfig(self, deployment): return os.path.isfile("wp-config.php") - def checkWeb(self, deployment, out=None): - page = deployment.fetch("") - if type(out) is list: - out.append(page) - return page.find(">>>>>> +""", [0]) +], +}