Skip to content

PostgreSQL backup tool with Point-In-Time-Recovery and restore verification

FEATURE (playground): Add support of Rybbit script for playground

Rostislav Duginebeb597f17d9
diff --git a/Dockerfile b/Dockerfile
index 8e09468e..4e0ab701 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -272,6 +272,12 @@ window.__RUNTIME_CONFIG__ = {
};
JSEOF
+# Inject analytics script if provided
+if [ -n "\${ANALYTICS_SCRIPT:-}" ]; then
+ echo "Injecting analytics script..."
+ sed -i "s#</head># \${ANALYTICS_SCRIPT}\n </head>#" /app/ui/build/index.html
+fi
+
# Ensure proper ownership of data directory
echo "Setting up data directory permissions..."
mkdir -p /databasus-data/pgdata