config: Update 5 files
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 7s
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 7s
This commit is contained in:
@@ -16,7 +16,10 @@ cd "$SCRIPT_DIR" || _die "Failed to change to script directory"
|
||||
# Stop and remove containers
|
||||
docker compose -p "${CONTAINER_NAME}" down -v 2>/dev/null || true
|
||||
|
||||
# Remove data directory
|
||||
rm -rf "${DATA_PATH}"
|
||||
# Remove data directory using Docker (files are owned by root from containers)
|
||||
if [ -d "${DATA_PATH}" ]; then
|
||||
docker run --rm -v "${DATA_PATH}:/data" alpine rm -rf /data/* /data/.[!.]* 2>/dev/null || true
|
||||
rmdir "${DATA_PATH}" 2>/dev/null || true
|
||||
fi
|
||||
|
||||
echo "Destroyed ${CONTAINER_NAME} and all data."
|
||||
|
||||
Reference in New Issue
Block a user