diff options
| author | yalh76 <yalh@yahoo.com> | 2019-03-23 02:07:42 +0100 |
|---|---|---|
| committer | yalh76 <yalh@yahoo.com> | 2019-03-23 02:07:42 +0100 |
| commit | 80acfc8df60cff08f9b3c77302e094b681d49d28 (patch) | |
| tree | 55afbb984133f6e31b026310f82a3b3d6a8c3b93 /scripts/install | |
| parent | d4eac065f751c0f7f566ee41d689d9232654b8e7 (diff) | |
| download | mastodon_ynh-80acfc8df60cff08f9b3c77302e094b681d49d28.tar.gz mastodon_ynh-80acfc8df60cff08f9b3c77302e094b681d49d28.tar.bz2 mastodon_ynh-80acfc8df60cff08f9b3c77302e094b681d49d28.zip | |
fix ldap username
Diffstat (limited to 'scripts/install')
| -rw-r--r-- | scripts/install | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/install b/scripts/install index 1e8ee50..6b5d676 100644 --- a/scripts/install +++ b/scripts/install @@ -180,7 +180,7 @@ otp_secret=$(head -n128 /dev/urandom | tail -n +1 | tr -dc -d 'a-z0-9' | head -c ynh_replace_string "__OTP_SECRET__" "$otp_secret" "$final_path/live/.env.production" ynh_app_setting_set "$app" otp_secret "$otp_secret" -ldap_user="$app_ldap" +ldap_user="${app}_ldap" ynh_user_exists $ldap_user || ynh_die "LDAP User $app already exist" ldap_password=$(head -n128 /dev/urandom | tail -n +1 | tr -dc -d 'a-z0-9' | head -c128) yunohost user create username f $app -l $app -m $app@$domain -p $ldap_password -q 0 |
