From ee220a3a18cfc4c98a6975f2f2ff6600aae32396 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Bourr=C3=A9?= Date: Sun, 13 Jan 2019 16:01:54 +0100 Subject: [PATCH] Change variable name to only_use_ldap to use_web_account --- manifest.json | 6 +++--- scripts/install | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/manifest.json b/manifest.json index bde4c20..46fdbe8 100644 --- a/manifest.json +++ b/manifest.json @@ -61,11 +61,11 @@ "default": true }, { - "name": "only_use_ldap", + "name": "use_web_account", "type": "boolean", "ask": { - "en": "Use only Yunohost account to sign in?", - "fr": "Utiliser seulement les comptes Yunohost pour se connecter ?" + "en": "Allow account creation via the gitlab web interface?", + "fr": "Autoriser la création de compte via l'interface web de gitlab ?" }, "default": true } diff --git a/scripts/install b/scripts/install index ab4be95..71d0a6e 100644 --- a/scripts/install +++ b/scripts/install @@ -22,7 +22,7 @@ source ./_common.sh domain=$YNH_APP_ARG_DOMAIN path_url=$YNH_APP_ARG_PATH 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 #================================================= @@ -50,7 +50,7 @@ ynh_user_exists "$admin" \ ynh_app_setting_set $app admin $admin ynh_app_setting_set $app path_url $path_url 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 @@ -107,7 +107,7 @@ newuser.admin = true newuser.confirmed_at = Time.now newuser.confirmation_token = nil 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