mirror of
https://github.com/YunoHost-Apps/gitlab_ynh.git
synced 2024-09-03 18:36:35 +02:00
Merge branch 'testing' of github.com:YunoHost-Apps/gitlab_ynh into testing
This commit is contained in:
commit
8405a90664
6 changed files with 11 additions and 12 deletions
|
@ -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:** <https://gitlab.com/explore>
|
||||
|
||||
|
|
|
@ -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:** <https://gitlab.com/explore>
|
||||
|
||||
|
|
|
@ -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 :** <https://gitlab.com/explore>
|
||||
|
||||
|
|
|
@ -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:** <https://gitlab.com/explore>
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
Git-repository manager providing wiki, issue-tracking and CI/CD pipeline features
|
||||
|
||||
**分发版本:** 16.10.3~ynh1
|
||||
**分发版本:** 16.11.1~ynh1
|
||||
|
||||
**演示:** <https://gitlab.com/explore>
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue