docs: Add 1 and update 13 files
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 49s

This commit is contained in:
j
2025-12-18 21:55:59 +13:00
parent b28e56eaba
commit d932a96731
14 changed files with 139 additions and 123 deletions

View File

@@ -1,20 +1,20 @@
#!/bin/bash
# shellcheck disable=SC1091
source "${AGENT_PATH}/common.sh"
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "${SCRIPT_DIR}/_volumes.sh"
_check_required_env_vars "CONTAINER_NAME" "DATA_PATH"
# DESTROY SCRIPT
# Completely removes the service AND all data
# WARNING: This is irreversible!
# Export variables for docker compose
export CONTAINER_NAME DATA_PATH HTTP_PORT PUID PGID TZ IMAGE_TAG DB_NAME DB_USER DB_PASS
echo "WARNING: This will PERMANENTLY DELETE all data for ${CONTAINER_NAME}"
echo "This includes all wiki pages, users, and configuration!"
echo "This includes all wiki pages, users, database, and configuration!"
./uninstall.sh
cd "$SCRIPT_DIR"
# shellcheck disable=SC2046
destroy_items $(get_wikijs_volumes) || _die "Failed to destroy docker volumes"
# Stop and remove containers
docker compose down -v 2>/dev/null || true
# Remove data directory
rm -rf "${DATA_PATH}"
echo "Destroyed ${CONTAINER_NAME} and all data."