2009-06-23 19:40:23 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2009-08-25 23:53:24 +01:00
|
|
|
source /etc/statusnet/setup.cfg
|
2009-06-23 19:40:23 +01:00
|
|
|
|
|
|
|
export nickname=$1
|
|
|
|
|
|
|
|
export database=$nickname$DBBASE
|
|
|
|
|
|
|
|
# Create the db
|
|
|
|
|
|
|
|
mysqladmin -h $DBHOST -u $ADMIN --password=$ADMINPASS -f drop $database
|
|
|
|
|
|
|
|
mysql -h $DBHOST -u $ADMIN --password=$ADMINPASS $SITEDB << ENDOFCOMMANDS
|
|
|
|
|
|
|
|
delete from status_network where nickname = '$nickname';
|
|
|
|
|
|
|
|
ENDOFCOMMANDS
|
|
|
|
|
|
|
|
for top in $AVATARBASE $FILEBASE $BACKGROUNDBASE; do
|
2009-06-23 19:43:20 +01:00
|
|
|
rm -Rf $top/$nickname
|
2009-06-23 19:40:23 +01:00
|
|
|
done
|