diff options
| author | yalh76 <yalh@yahoo.com> | 2019-03-23 03:33:44 +0100 |
|---|---|---|
| committer | yalh76 <yalh@yahoo.com> | 2019-03-23 03:33:44 +0100 |
| commit | 37e462d1adacc1f011aedac4209bccae36535275 (patch) | |
| tree | ae8517e7a0e533ef178a0c2da6708f6eacd7ce85 /scripts/install | |
| parent | d1a1e67008d0838257528344d56b285ad7a39f34 (diff) | |
| download | mastodon_ynh-37e462d1adacc1f011aedac4209bccae36535275.tar.gz mastodon_ynh-37e462d1adacc1f011aedac4209bccae36535275.tar.bz2 mastodon_ynh-37e462d1adacc1f011aedac4209bccae36535275.zip | |
removed LDAP
Mastodon LDAP need authentication
Wasn't able to create a dedicated user
Diffstat (limited to 'scripts/install')
| -rw-r--r-- | scripts/install | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/scripts/install b/scripts/install index 2d43ce7..feb0a70 100644 --- a/scripts/install +++ b/scripts/install @@ -180,14 +180,6 @@ 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_password=$(head -n32 /dev/urandom | tail -n +1 | tr -dc -d 'a-z0-9' | head -c32) -yunohost user create $ldap_user -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" -ynh_replace_string "__LDAP_PASSWORD__" "$ldap_password" "${final_path}/live/.env.production" -ynh_app_setting_set "$app" ldap_user "$ldap_user" -ynh_app_setting_set "$app" ldap_password "$ldap_password" - #================================================= # INSTALLING MASTODON #================================================= |
