diff options
| author | yalh76 <yalh@yahoo.com> | 2019-03-23 02:28:48 +0100 |
|---|---|---|
| committer | yalh76 <yalh@yahoo.com> | 2019-03-23 02:28:48 +0100 |
| commit | 652d6f6c67c200fc22bf03efed0174ebc4f38d29 (patch) | |
| tree | d13bf9872c70d4340ec4938c6ed9434f907663eb /scripts/install | |
| parent | ff2fea8ef2b45cb027a72b8a3b124dd401f6a159 (diff) | |
| download | mastodon_ynh-652d6f6c67c200fc22bf03efed0174ebc4f38d29.tar.gz mastodon_ynh-652d6f6c67c200fc22bf03efed0174ebc4f38d29.tar.bz2 mastodon_ynh-652d6f6c67c200fc22bf03efed0174ebc4f38d29.zip | |
fix ldap user
Diffstat (limited to 'scripts/install')
| -rw-r--r-- | scripts/install | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/scripts/install b/scripts/install index 5e3f742..bc2229c 100644 --- a/scripts/install +++ b/scripts/install @@ -181,7 +181,6 @@ ynh_replace_string "__OTP_SECRET__" "$otp_secret" "$final_path/live/.env.product ynh_app_setting_set "$app" otp_secret "$otp_secret" ldap_user="${app}ldap" -ynh_user_exists $ldap_user || ynh_die "LDAP User $ldap_user already exist" ldap_password=$(head -n128 /dev/urandom | tail -n +1 | tr -dc -d 'a-z0-9' | head -c128) yunohost user create username -f $ldap_user -l $ldap_user -m $app@$domain -p $ldap_password -q 0 ynh_replace_string "__LDAP_USER__" "$ldap_user" "${final_path}/live/.env.production" |
