summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2023-08-12 02:53:54 -0400
committerMalfurious <m@lfurio.us>2023-08-12 02:53:54 -0400
commit6d503fa18f0f68c893d45fea2dc018f78c1ab02b (patch)
tree9c0a5471d05a817bb9bf2fa46fee082b1bfea853
parent99045bf64cf136df3c0d7d3775a64cc41268a0ed (diff)
downloadcychedelic-6d503fa18f0f68c893d45fea2dc018f78c1ab02b.tar.gz
cychedelic-6d503fa18f0f68c893d45fea2dc018f78c1ab02b.zip
acid: build: Bring cychedelic down under its default name as well
If cychedelic is ever started manually, using a pre-existing data volume, the system will believe the previous instance is using a specific random project name and may not properly shutdown the user-initiated instance on a rebuild. Simply attempting to stop the service using its default name will catch this, and not cause any problems in the general case. Signed-off-by: Malfurious <m@lfurio.us>
-rwxr-xr-xacid/cyche-build1
1 files changed, 1 insertions, 0 deletions
diff --git a/acid/cyche-build b/acid/cyche-build
index 4239340..f37c22b 100755
--- a/acid/cyche-build
+++ b/acid/cyche-build
@@ -46,5 +46,6 @@ echo "$2" >.git/previous_hash
if [ "$3" == "--self" ]; then
echo "$slug" >.git/previous_slug
+ docker compose down
docker compose $prev down
fi