#!/bin/sh set -e # Optionally create/update the admin (superuser) account on boot. # Set PB_SUPERUSER_EMAIL and PB_SUPERUSER_PASSWORD as env vars to enable. # The password must be at least 8 characters. if [ -n "$PB_SUPERUSER_EMAIL" ] && [ -n "$PB_SUPERUSER_PASSWORD" ]; then ./pocketbase superuser upsert "$PB_SUPERUSER_EMAIL" "$PB_SUPERUSER_PASSWORD" || true fi # `serve` automatically applies pending migrations from ./pb_migrations exec ./pocketbase serve --http=0.0.0.0:8090