mirror of
https://github.com/YunoHost-Apps/forgejo_ynh.git
synced 2024-09-03 18:36:26 +02:00
fix: check and create login auth source on each upgrade
This commit is contained in:
parent
5866785653
commit
0e61609e6f
4 changed files with 7 additions and 6 deletions
|
@ -34,7 +34,7 @@ Brought to you by an inclusive community under the umbrella of Codeberg e.V., a
|
|||
- Customize HTML templates, static files and many others.
|
||||
|
||||
|
||||
**Shipped version:** 1.21.3-0~ynh1
|
||||
**Shipped version:** 1.21.3-0~ynh2
|
||||
|
||||
## Screenshots
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ Brought to you by an inclusive community under the umbrella of Codeberg e.V., a
|
|||
- Customize HTML templates, static files and many others.
|
||||
|
||||
|
||||
**Version incluse :** 1.21.3-0~ynh1
|
||||
**Version incluse :** 1.21.3-0~ynh2
|
||||
|
||||
## Captures d’écran
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ name = "Forgejo"
|
|||
description.en = "Lightweight software forge"
|
||||
description.fr = "Forge logiciel légère"
|
||||
|
||||
version = "1.21.3-0~ynh1"
|
||||
version = "1.21.3-0~ynh2"
|
||||
|
||||
maintainers = ["Emmanuel Averty"]
|
||||
|
||||
|
|
|
@ -39,10 +39,11 @@ pushd "$install_dir"
|
|||
|
||||
# Delete old login source
|
||||
ynh_exec_as $app ./forgejo admin auth delete --id $old_login_source_id
|
||||
|
||||
# Create new login source
|
||||
set_forgejo_login_source
|
||||
fi
|
||||
|
||||
ynh_exec_as $app ./forgejo admin auth list | grep "YunoHost LDAP" | grep -q "LDAP (simple auth)" ||
|
||||
# create new login source if not existing
|
||||
set_forgejo_login_source
|
||||
popd
|
||||
|
||||
# Update login source synchronization flag (1.19.3-0~ynh3)
|
||||
|
|
Loading…
Reference in a new issue