Add open-webui dropshell template for AI chat interface
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 15s

This commit is contained in:
j
2026-03-15 13:15:46 +13:00
parent 1a6f71dbdc
commit 0d6c64d7fd
12 changed files with 138 additions and 0 deletions

13
open-webui/restore.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
source "${AGENT_PATH}/common.sh"
_check_required_env_vars "CONTAINER_NAME" "DATA_VOLUME" "BACKUP_FILE" "TEMP_DIR"
mkdir -p "${TEMP_DIR}/restore"
tar -xzf "${BACKUP_FILE}" -C "${TEMP_DIR}/restore"
docker volume rm "${DATA_VOLUME}" 2>/dev/null || true
docker volume create "${DATA_VOLUME}"
docker run --rm -v "${DATA_VOLUME}":/target -v "${TEMP_DIR}/restore":/backup \
debian tar -xzf /backup/data.tgz -C /target
echo "Restore completed successfully"