diff options
| author | yalh76 <yalh@yahoo.com> | 2019-07-10 01:07:32 +0200 |
|---|---|---|
| committer | yalh76 <yalh@yahoo.com> | 2019-07-10 01:07:32 +0200 |
| commit | feab0450d821b21cdc8a8fc0ee9ae9b1e9913d33 (patch) | |
| tree | 16ce9dbb3cb6116b2904daf4abda8addcab3ba56 /scripts/restore | |
| parent | e0d8fa20c3694523b15e5602001a2727314698d9 (diff) | |
| download | mastodon_ynh-feab0450d821b21cdc8a8fc0ee9ae9b1e9913d33.tar.gz mastodon_ynh-feab0450d821b21cdc8a8fc0ee9ae9b1e9913d33.tar.bz2 mastodon_ynh-feab0450d821b21cdc8a8fc0ee9ae9b1e9913d33.zip | |
Implement LDAP
Diffstat (limited to 'scripts/restore')
| -rw-r--r-- | scripts/restore | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/restore b/scripts/restore index 59e71fc..89e2430 100644 --- a/scripts/restore +++ b/scripts/restore @@ -35,6 +35,8 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path) db_name=$(ynh_app_setting_get --app=$app --key=db_name) db_user=$app db_pwd=$(ynh_app_setting_get --app=$app --key=db_pwd) +ldap_user=$(ynh_app_setting_get --app=$app --key=ldap_user) +ldap_password=$(ynh_app_setting_get --app=$app --key=ldap_password) #================================================= # CHECK IF THE APP CAN BE RESTORED @@ -90,6 +92,13 @@ ynh_install_app_dependencies $pkg_dependencies ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg" #================================================= +# 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=393 |
