summaryrefslogtreecommitdiffstats
path: root/acid/cyche-remove
blob: c988efeeff7709c47beb7b08c08de1da5a94f4a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

# cyche-remove <name>
#
# Stop the service <name>, which was previously managed by cychedelic, and
# remove associated files.

name=$(cat "/services/$1/.git/previous_slug")
[ -z "$name" ] && name="$1"

docker compose --project-name "$name" down

echo "Removing files..."
rm -rf "/services/$1"
echo "Done."