From fe1abd055998e171b92d0e42df8063cab83a40ed Mon Sep 17 00:00:00 2001 From: Malfurious Date: Tue, 24 Oct 2023 22:05:05 -0400 Subject: acid: Don't use 'cychedelic' in file names As I add new components to the cychedelic system, it would be best to use more specific naming. 'cychedelic' is the name of the project, whereas 'acid' is the name of this program. Signed-off-by: Malfurious --- acid/acid-remove | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 acid/acid-remove (limited to 'acid/acid-remove') 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 +# +# Stop the service , 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." -- cgit v1.2.3