set login_source to ls.id and not user id
This commit is contained in:
parent
2d0a1f14e6
commit
32daf79b3b
2
start.sh
2
start.sh
|
@ -9,7 +9,7 @@ migrate_ldap_users_to_oidc() {
|
|||
|
||||
echo "==> migrate LDAP to OIDC"
|
||||
mysql -u"${CLOUDRON_MYSQL_USERNAME}" -p"${CLOUDRON_MYSQL_PASSWORD}" -h mysql --database="${CLOUDRON_MYSQL_DATABASE}" -N -B -e \
|
||||
"UPDATE user u, (select id from login_source WHERE name='cloudron' and type='6') ls SET u.login_type=6, u.login_source=u.id WHERE u.login_type=2 AND u.login_source=1"
|
||||
"UPDATE user u, (select id from login_source WHERE name='cloudron' and type='6') ls SET u.login_type=6, u.login_source=ls.id WHERE u.login_type=2 AND u.login_source=1"
|
||||
}
|
||||
|
||||
setup_oidc_source() {
|
||||
|
|
Loading…
Reference in New Issue