missing scripts

This commit is contained in:
jarek committed 2026-01-03 13:21:38 +01:00
1 parent 80c000c601
commit 66e723052d
30 files changed
+3108

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
#!/bin/sh
#
# Emergency script to factory reset the database
# Automatically detects database type (SQLite or PostgreSQL)
# WARNING: This will DELETE ALL DATA!
#
# Usage:
# docker exec -it dockhand /app/scripts/emergency/reset-db.sh
#
SCRIPT_DIR="$(dirname "$0")"
# Detect database type
if [ -n "$DATABASE_URL" ] && (echo "$DATABASE_URL" | grep -qE '^postgres(ql)?://'); then
exec "$SCRIPT_DIR/postgres/reset-db.sh" "$@"
else
exec "$SCRIPT_DIR/sqlite/reset-db.sh" "$@"
fi