blob: 1aa5f3675fb5903e2e0c45119e3cc601adece028 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/bash
# cyche-remove <name>
#
# Stop the service <name>, which was previously managed by cychedelic, and
# remove associated files.
cd "/services/$1"
file=$(cat '.git/previous_file')
slug=$(cat '.git/previous_slug')
[ -n "$slug" ] && slug="--project-name $slug"
docker compose $slug --file "$file" down \
--remove-orphans
echo "Removing files..."
cd ".."
rm -rf "$1"
echo "Done."
|