aboutsummaryrefslogtreecommitdiff
path: root/scripts/remove
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2019-07-10 01:07:32 +0200
committeryalh76 <yalh@yahoo.com>2019-07-10 01:07:32 +0200
commitfeab0450d821b21cdc8a8fc0ee9ae9b1e9913d33 (patch)
tree16ce9dbb3cb6116b2904daf4abda8addcab3ba56 /scripts/remove
parente0d8fa20c3694523b15e5602001a2727314698d9 (diff)
downloadmastodon_ynh-feab0450d821b21cdc8a8fc0ee9ae9b1e9913d33.tar.gz
mastodon_ynh-feab0450d821b21cdc8a8fc0ee9ae9b1e9913d33.tar.bz2
mastodon_ynh-feab0450d821b21cdc8a8fc0ee9ae9b1e9913d33.zip
Implement LDAP
Diffstat (limited to 'scripts/remove')
-rw-r--r--scripts/remove8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/remove b/scripts/remove
index 19cbf29..cbbae0b 100644
--- a/scripts/remove
+++ b/scripts/remove
@@ -22,6 +22,7 @@ domain=$(ynh_app_setting_get --app=$app --key=domain)
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
db_user=$app
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
+ldap_user=$(ynh_app_setting_get --app=$app --key=ldap_user)
#=================================================
# STANDARD REMOVE
@@ -96,6 +97,13 @@ ynh_remove_nginx_config
#=================================================
# SPECIFIC REMOVE
#=================================================
+# REMOVE LDAP USER
+#=================================================
+ynh_script_progression --message="Removing ldap user..." --weight=2
+
+yunohost user delete $ldap_user --purge
+
+#=================================================
# REMOVE THE CRON FILE
#=================================================