party/deploy/teardown.sh

20 lines
367 B
Bash

#!/bin/bash
set -euo pipefail
# Purge the installed package — removes binary, web assets, /etc/party, and the party user
if dpkg -s party &>/dev/null 2>&1; then
dpkg --purge party
fi
# Remove cloned repo
rm -rf /srv/party
# Remove migrate
rm -f /usr/local/bin/migrate
# Remove Go
apt-get remove -y golang-go
apt-get autoremove -y
echo "Teardown complete."