mirror of
https://github.com/YunoHost-Apps/gitlab_ynh.git
synced 2024-09-03 18:36:35 +02:00
Change variable name to only_use_ldap to use_web_account
This commit is contained in:
parent
ac3f7679c3
commit
ee220a3a18
2 changed files with 6 additions and 6 deletions
|
@ -61,11 +61,11 @@
|
||||||
"default": true
|
"default": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "only_use_ldap",
|
"name": "use_web_account",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "Use only Yunohost account to sign in?",
|
"en": "Allow account creation via the gitlab web interface?",
|
||||||
"fr": "Utiliser seulement les comptes Yunohost pour se connecter ?"
|
"fr": "Autoriser la création de compte via l'interface web de gitlab ?"
|
||||||
},
|
},
|
||||||
"default": true
|
"default": true
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@ source ./_common.sh
|
||||||
domain=$YNH_APP_ARG_DOMAIN
|
domain=$YNH_APP_ARG_DOMAIN
|
||||||
path_url=$YNH_APP_ARG_PATH
|
path_url=$YNH_APP_ARG_PATH
|
||||||
is_public=$YNH_APP_ARG_IS_PUBLIC
|
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||||
only_use_ldap=$YNH_APP_ARG_ONLY_USE_LDAP
|
use_web_account=$YNH_APP_ARG_USE_WEB_ACCOUNT
|
||||||
admin=$YNH_APP_ARG_ADMIN
|
admin=$YNH_APP_ARG_ADMIN
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -50,7 +50,7 @@ ynh_user_exists "$admin" \
|
||||||
ynh_app_setting_set $app admin $admin
|
ynh_app_setting_set $app admin $admin
|
||||||
ynh_app_setting_set $app path_url $path_url
|
ynh_app_setting_set $app path_url $path_url
|
||||||
ynh_app_setting_set $app is_public $is_public
|
ynh_app_setting_set $app is_public $is_public
|
||||||
ynh_app_setting_set $app only_use_ldap $only_use_ldap
|
ynh_app_setting_set $app use_web_account $use_web_account
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STANDARD MODIFICATIONS
|
# STANDARD MODIFICATIONS
|
||||||
|
@ -107,7 +107,7 @@ newuser.admin = true
|
||||||
newuser.confirmed_at = Time.now
|
newuser.confirmed_at = Time.now
|
||||||
newuser.confirmation_token = nil
|
newuser.confirmation_token = nil
|
||||||
newuser.save
|
newuser.save
|
||||||
ApplicationSetting.last.update_attributes(password_authentication_enabled_for_web: $only_use_ldap, signup_enabled: $only_use_ldap)" | sudo gitlab-rails console
|
ApplicationSetting.last.update_attributes(password_authentication_enabled_for_web: $use_web_account, signup_enabled: $use_web_account)" | sudo gitlab-rails console
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTART TO TAKE INTO ACCOUNT CHANGES
|
# RESTART TO TAKE INTO ACCOUNT CHANGES
|
||||||
|
|
Loading…
Reference in a new issue