Migrate prod to stg kerberos principals in the koji db during sync

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2017-06-16 07:59:28 +00:00
parent 33e589722c
commit b9307ffed6

View file

@ -165,5 +165,6 @@ insert into user_perms (user_id, perm_id, active, creator_id) values (
('containerbuild', 'osbs/osbs.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');
VACUUM ANALYZE;