From: Evan Prodromou Date: Tue, 23 Jun 2009 18:40:23 +0000 (-0700) Subject: script to delete a status network X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=83b5e6be0244e8b8c971bcc11103c2e32b54efd6;p=quix0rs-gnu-social.git script to delete a status network --- diff --git a/scripts/delete_status_network.sh b/scripts/delete_status_network.sh new file mode 100644 index 0000000000..1cf716849e --- /dev/null +++ b/scripts/delete_status_network.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +source /etc/laconica/setup.cfg + +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 + rmdir $top/$nickname +done