diff --git a/src/freedombone-rmuser b/src/freedombone-rmuser index 49722c1f..5864b1e4 100755 --- a/src/freedombone-rmuser +++ b/src/freedombone-rmuser @@ -61,6 +61,15 @@ if grep -q "install_sip" $COMPLETION_FILE; then ${PROJECT_NAME}-rmsipuser $MY_USERNAME fi +if grep -q "GNU Social domain" $COMPLETION_FILE; then + MICROBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "GNU Social domain" | awk -F ':' '{print $2}') + if [ -d /var/www/$MICROBLOG_DOMAIN_NAME ]; then + cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs + php scripts/deleteprofile.php -n $MY_USERNAME -y + echo $'Removed GNU Social user' + fi +fi + #if grep -q "install_owncloud" $COMPLETION_FILE; then # occ user:delete $MY_USERNAME #fi