diff options
| author | yalh76 <yalh@yahoo.com> | 2019-08-04 00:31:07 +0200 |
|---|---|---|
| committer | yalh76 <yalh@yahoo.com> | 2019-08-04 00:31:07 +0200 |
| commit | 6f5fec437c9874e289cbd0f68b0e109e02cbccdf (patch) | |
| tree | 16fd976b1a2fd4c34bd88a0c916ea5021be92ae1 /scripts/upgrade | |
| parent | 6c7a10d5c3e97751d105b30de3d7c0f5ff5d4e88 (diff) | |
| download | mastodon_ynh-6f5fec437c9874e289cbd0f68b0e109e02cbccdf.tar.gz mastodon_ynh-6f5fec437c9874e289cbd0f68b0e109e02cbccdf.tar.bz2 mastodon_ynh-6f5fec437c9874e289cbd0f68b0e109e02cbccdf.zip | |
removing dedicated ldap user creation
Diffstat (limited to 'scripts/upgrade')
| -rw-r--r-- | scripts/upgrade | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/scripts/upgrade b/scripts/upgrade index fe6f331..46e7229 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -37,9 +37,6 @@ otp_secret=$(ynh_app_setting_get --app=$app --key=otp_secret) vapid_private_key=$(ynh_app_setting_get --app=$app --key=vapid_private_key) vapid_public_key=$(ynh_app_setting_get --app=$app --key=vapid_public_key) -ldap_user=$(ynh_app_setting_get --app=$app --key=ldap_user) -ldap_password=$(ynh_app_setting_get --app=$app --key=ldap_password) - #================================================= # CHECK VERSION #================================================= @@ -125,16 +122,6 @@ if [[ -z "$vapid_private_key" ]]; then ynh_app_setting_set "$app" vapid_public_key "$vapid_public_key" fi -# If ldap_user doesn't exist, retrieve it or create it -if [[ -z "$ldap_user" ]]; then - ldap_user="svc_${app}_ldap" - ldap_password==$(ynh_string_random --length=8) - ynh_app_setting_set "$app" ldap_user "$ldap_user" - ynh_app_setting_set "$app" ldap_password "$ldap_password" - - yunohost user create $ldap_user --firstname "SvcMastodonLdap" --lastname "SvcMastodonLdap" --mail ${ldap_user}@$domain --password $ldap_password -q 0 -fi - #Remove previous added repository ynh_remove_extra_repo @@ -252,9 +239,6 @@ ynh_replace_string --match_string="__OTP_SECRET__" --replace_string="$otp_secret ynh_replace_string "__VAPID_PRIVATE_KEY__" "$vapid_private_key" "$final_path/live/.env.production" ynh_replace_string "__VAPID_PUBLIC_KEY__" "$vapid_public_key" "$final_path/live/.env.production" -ynh_replace_string --match_string="__LDAP_USER__" --replace_string="$ldap_user" --target_file="$final_path/live/.env.production" -ynh_replace_string --match_string="__LDAP_PASSWORD__" --replace_string="$ldap_password" --target_file="$final_path/live/.env.production" - #================================================= # UPGRADE MASTODON #================================================= |
