Fix kojira staging principal

This commit is contained in:
Mikolaj Izdebski 2018-03-03 09:00:25 +00:00
parent 8036100108
commit c7c272ca89

View file

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