Make sure kojira survives prod -> stg sync

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2017-10-05 16:52:25 +00:00
parent 7e9ef9e99d
commit a8217487d4

View file

@ -162,7 +162,8 @@ insert into user_perms (user_id, perm_id, active, creator_id) values (
{% for username, principal in [('releng', 'compose/koji.stg.fedoraproject.org'),
('koschei', 'koschei/koschei-backend01.stg.phx2.fedoraproject.org'),
('hotness', 'hotness/hotness01.stg.phx2.fedoraproject.org'),
('containerbuild', 'osbs/osbs.stg.fedoraproject.org')] %}
('containerbuild', 'osbs/osbs.stg.fedoraproject.org'),
('kojira', 'kojira/koji.stg.fedoraproject.org@STG.FEDORAPROJECT.ORG')] %}
update users set krb_principal='{{principal}}@STG.FEDORAPROJECT.ORG' where username='{{username}}';
{% endfor %}
update users set krb_principal=replace(krb_principal, '@FEDORAPROJECT.ORG', '@STG.FEDORAPROJECT.ORG');