From 566f56661203b97092795898ae3db38e410bbbae Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Wed, 24 Apr 2024 17:09:12 +0000 Subject: [PATCH 1/2] Auto-update READMEs --- README.md | 2 +- README_eu.md | 2 +- README_fr.md | 2 +- README_gl.md | 2 +- README_zh_Hans.md | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index aa008a5..6613b92 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ It shall NOT be edited by hand. Git-repository manager providing wiki, issue-tracking and CI/CD pipeline features -**Shipped version:** 16.10.3~ynh1 +**Shipped version:** 16.11.1~ynh1 **Demo:** diff --git a/README_eu.md b/README_eu.md index 8d786d1..0f2a4d3 100644 --- a/README_eu.md +++ b/README_eu.md @@ -18,7 +18,7 @@ EZ editatu eskuz. Git-repository manager providing wiki, issue-tracking and CI/CD pipeline features -**Paketatutako bertsioa:** 16.10.3~ynh1 +**Paketatutako bertsioa:** 16.11.1~ynh1 **Demoa:** diff --git a/README_fr.md b/README_fr.md index acb0586..fc00307 100644 --- a/README_fr.md +++ b/README_fr.md @@ -18,7 +18,7 @@ Il NE doit PAS être modifié à la main. Gestionnaire de dépôts Git proposant des fonctionnalités de wiki, suivi de bugs et de pipeline CI/CD -**Version incluse :** 16.10.3~ynh1 +**Version incluse :** 16.11.1~ynh1 **Démo :** diff --git a/README_gl.md b/README_gl.md index 162048e..7126619 100644 --- a/README_gl.md +++ b/README_gl.md @@ -18,7 +18,7 @@ NON debe editarse manualmente. Git-repository manager providing wiki, issue-tracking and CI/CD pipeline features -**Versión proporcionada:** 16.10.3~ynh1 +**Versión proporcionada:** 16.11.1~ynh1 **Demo:** diff --git a/README_zh_Hans.md b/README_zh_Hans.md index 957c7f0..1172c56 100644 --- a/README_zh_Hans.md +++ b/README_zh_Hans.md @@ -18,7 +18,7 @@ Git-repository manager providing wiki, issue-tracking and CI/CD pipeline features -**分发版本:** 16.10.3~ynh1 +**分发版本:** 16.11.1~ynh1 **演示:** From 405e48c88e3673e9b3e44c89517d99ca50b73166 Mon Sep 17 00:00:00 2001 From: Kayou Date: Tue, 30 Apr 2024 17:10:40 +0200 Subject: [PATCH 2/2] #245 fix user creation (add organization), used gitlab-rails runner instead of console, which should crash if user is not created --- scripts/install | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/scripts/install b/scripts/install index 973ecdd..3984b47 100644 --- a/scripts/install +++ b/scripts/install @@ -128,15 +128,14 @@ ynh_add_nginx_config client_max_body_size #================================================= ynh_script_progression --message="Creating an administrator user..." --weight=13 -mailadmin=$(ynh_user_get_info --username=$admin --key=mail) +mailAdmin=$(ynh_user_get_info --username=$admin --key=mail) +fullnameAdmin=$(ynh_user_get_info --username=$admin --key=fullname) rdmPass=$(ynh_string_random --length=30) -echo "newuser = User.new({ \"email\"=>'$mailadmin', \"username\"=>'$admin', \"name\"=>'$admin', \"password\"=>'$rdmPass'}) -newuser.admin = true -newuser.confirmed_at = Time.now -newuser.confirmation_token = nil -newuser.save! -ApplicationSetting.last.update(password_authentication_enabled_for_web: $use_web_account, signup_enabled: $use_web_account)" | gitlab-rails console +gitlab-rails runner "newuser = User.new(username: \"$admin\", email: \"$mailAdmin\", name: \"$fullnameAdmin\", password: \"$rdmPass\", admin: true, skip_confirmation: true);\ + newuser.assign_personal_namespace(Organizations::Organization.default_organization);\ + newuser.save!;\ + ApplicationSetting.last.update(password_authentication_enabled_for_web: $use_web_account, signup_enabled: $use_web_account);" #================================================= # RECONFIGURE TO TAKE INTO ACCOUNT CHANGES