#!/usr/bin/env bash set -euo pipefail DATA_DIR="${APP_DATA_DIR:-./data}" mkdir -p "${DATA_DIR}" if [ ! -f "${DATA_DIR}/index.html" ]; then cat > "${DATA_DIR}/index.html" <<'EOF' Static Web Server

Static Web Server

Your 1Panel static site directory is ready.

EOF fi chmod -R a+rX "${DATA_DIR}" 2>/dev/null || true