1
0
Fork 0
mirror of https://gitlab.wikimedia.org/ladsgroup/Phabricator-maintenance-bot synced 2024-11-22 03:52:37 +01:00

Add ability to override dbname

Some wikis have a different dbname than what can be found from their
urls, like T246945
This commit is contained in:
Amir Sarabadani 2020-08-24 19:40:42 +02:00
parent 7ace1cb220
commit 0617aa1b9b

View file

@ -143,6 +143,8 @@ def hande_task(phid):
create_patch_for_dns(language_code, task_tid)
add_checklist(dns_url, 'DNS', dns)
db_name = wiki_spec.get('Database name')
if not db_name:
if parts[1] == 'wikipedia':
db_name = parts[0].replace('-', '_') + 'wiki'
else:
@ -153,7 +155,7 @@ def hande_task(phid):
if special:
apache_url = gerrit_path + \
'operations/puppet/+/master/modules/mediawiki/manifests/web/prod_sites.pp'
'operations/puppet/+/production/modules/mediawiki/manifests/web/prod_sites.pp'
if not handle_special_wiki_apache(parts):
apache = False
else: