mirror of
https://github.com/YunoHost-Apps/flarum_ynh.git
synced 2024-09-03 18:36:24 +02:00
Remove ssowat_id from users table
See https://github.com/tituspijean/flarum-ext-auth-ssowat/pull/8
This commit is contained in:
parent
43c2ac3024
commit
e109c8723b
1 changed files with 0 additions and 6 deletions
|
@ -178,10 +178,6 @@ if [[ $rep != 204 ]]; then
|
||||||
ynh_die "ERROR: Could not configure SSOwat extension"
|
ynh_die "ERROR: Could not configure SSOwat extension"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Enable the selected admin to login with SSOwat
|
|
||||||
adminsql="UPDATE users SET ssowat_id = '$admin' WHERE username = '$admin'"
|
|
||||||
ynh_mysql_execute_as_root "$adminsql" $dbname
|
|
||||||
|
|
||||||
# Create missing users
|
# Create missing users
|
||||||
for username in $(ynh_user_list); do
|
for username in $(ynh_user_list); do
|
||||||
if [ "$username" == "$admin" ]; then continue; else
|
if [ "$username" == "$admin" ]; then continue; else
|
||||||
|
@ -196,8 +192,6 @@ for username in $(ynh_user_list); do
|
||||||
if [[ $rep != 201 ]]; then
|
if [[ $rep != 201 ]]; then
|
||||||
ynh_die "ERROR: Flarum account creation failed for $username"
|
ynh_die "ERROR: Flarum account creation failed for $username"
|
||||||
fi
|
fi
|
||||||
usersql="UPDATE users SET ssowat_id = '$username' WHERE username = '$username'"
|
|
||||||
ynh_mysql_execute_as_root "$usersql" $dbname
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue