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/install | |
| 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/install')
| -rw-r--r-- | scripts/install | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/scripts/install b/scripts/install index 97bbc0b..0991cbc 100644 --- a/scripts/install +++ b/scripts/install @@ -36,9 +36,6 @@ admin_mail=$(ynh_user_get_info $admin 'mail') app=$YNH_APP_INSTANCE_NAME -ldap_user="svc_${app}_ldap" -ldap_password=$(ynh_string_random --length=8) - #================================================= # CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS #================================================= @@ -71,8 +68,6 @@ ynh_app_setting_set --app=$app --key=path --value=$path_url ynh_app_setting_set --app=$app --key=admin --value=$admin ynh_app_setting_set --app=$app --key=is_public --value=$is_public ynh_app_setting_set --app=$app --key=language --value=$language -ynh_app_setting_set --app=$app --key=ldap_user --value=$ldap_user -ynh_app_setting_set --app=$app --key=ldap_password --value=$ldap_password #================================================= # STANDARD MODIFICATIONS @@ -140,13 +135,6 @@ ynh_system_user_create --username=$app --home_dir=$final_path #================================================= # SPECIFIC SETUP #================================================= -# CREATING LDAP USER -#================================================= -ynh_script_progression --message="Creating LDAP user..." --weight=424 - -yunohost user create $ldap_user --firstname "SvcMastodonLdap" --lastname "SvcMastodonLdap" --mail ${ldap_user}@$domain --password $ldap_password -q 0 - -#================================================= # INSTALLING RUBY AND BUNDLER #================================================= ynh_script_progression --message="Installing Ruby..." --weight=424 @@ -182,9 +170,6 @@ otp_secret=$(head -n128 /dev/urandom | tail -n +1 | tr -dc -d 'a-z0-9' | head -c ynh_replace_string --match_string="__OTP_SECRET__" --replace_string="$otp_secret" --target_file="$final_path/live/.env.production" ynh_app_setting_set --app="$app" --key=otp_secret --value="$otp_secret" -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" - #================================================= # INSTALLING MASTODON #================================================= |
