Remove gnusocial user

This commit is contained in:
Bob Mottram 2016-02-12 19:42:16 +00:00
parent 6d786a6c80
commit e3c83a8eeb
1 changed files with 9 additions and 0 deletions

View File

@ -61,6 +61,15 @@ if grep -q "install_sip" $COMPLETION_FILE; then
${PROJECT_NAME}-rmsipuser $MY_USERNAME ${PROJECT_NAME}-rmsipuser $MY_USERNAME
fi 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 #if grep -q "install_owncloud" $COMPLETION_FILE; then
# occ user:delete $MY_USERNAME # occ user:delete $MY_USERNAME
#fi #fi