mirror of
https://github.com/seemueller-io/cluster.git
synced 2025-09-08 22:56:46 +00:00
Update script paths and adjust destroy order in package scripts
This commit is contained in:
15
packages/scripts/destroy.sh
Executable file
15
packages/scripts/destroy.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
echo "WARNING: This will destroy all local deployments."
|
||||
echo -n "Are you sure you want to proceed? (y/N): "
|
||||
read -r response
|
||||
|
||||
if [[ ! "$response" =~ ^[Yy]$ ]]; then
|
||||
echo "Teardown cancelled."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Reverse Order
|
||||
(cd deploy/dev/configurations && bun run destroy)
|
||||
(cd deploy/dev/components && bun run destroy)
|
||||
(cd deploy/dev/cluster && bun run destroy)
|
Reference in New Issue
Block a user