diff options
Diffstat (limited to 'acid/acid-remove')
-rwxr-xr-x | acid/acid-remove | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/acid/acid-remove b/acid/acid-remove new file mode 100755 index 0000000..6094a23 --- /dev/null +++ b/acid/acid-remove @@ -0,0 +1,15 @@ +#!/bin/bash + +# acid-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." |