diff --git a/README.md b/README.md index 840c393..29cb680 100644 --- a/README.md +++ b/README.md @@ -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.19.3-0~ynh3 +**Shipped version:** 1.19.3-0~ynh4 ## Screenshots diff --git a/README_fr.md b/README_fr.md index ef92d5c..5d45472 100644 --- a/README_fr.md +++ b/README_fr.md @@ -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.19.3-0~ynh3 +**Version incluse :** 1.19.3-0~ynh4 ## Captures d’écran @@ -61,4 +61,4 @@ ou sudo yunohost app upgrade forgejo -u https://github.com/YunoHost-Apps/forgejo_ynh/tree/testing --debug ``` -**Plus d’infos sur le packaging d’applications :** \ No newline at end of file +**Plus d’infos sur le packaging d’applications :** diff --git a/manifest.toml b/manifest.toml index 53412ed..23cc914 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Forgejo" description.en = "Lightweight software forge" description.fr = "Forge logiciel légère" -version = "1.19.3-0~ynh3" +version = "1.19.3-0~ynh4" maintainers = ["Emmanuel Averty"] diff --git a/scripts/upgrade b/scripts/upgrade index ca8e1c0..5d1fe0e 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -32,6 +32,11 @@ ynh_script_progression --message="Ensuring downward compatibility..." --weight=1 pushd "$install_dir" old_login_source_id=$(ynh_exec_as $app ./forgejo admin auth list | grep "YunoHost LDAP" | grep "via BindDN" | cut -f 1) if [ ! -z $old_login_source_id ]; then + ynh_print_info --message="Delete obsolete forgejo login source (LDAP via BindDN)" + + # Ensure no user have this obsolete login source + ynh_psql_execute_as_root --database $db_name --sql "update public.user set login_source = 0, login_type = 0 where login_source = ${old_login_source_id}" + # Delete old login source ynh_exec_as $app ./forgejo admin auth delete --id $old_login_source_id