mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-25 15:19:58 +00:00
14 lines
320 B
Bash
Executable File
14 lines
320 B
Bash
Executable File
#!/bin/sh
|
|
set -eux
|
|
|
|
if [ "$1" = 'pageserver' ]; then
|
|
if [ ! -d "/data/tenants" ]; then
|
|
echo "Initializing pageserver data directory"
|
|
pageserver --init -D /data --postgres-distrib /usr/local
|
|
fi
|
|
echo "Staring pageserver at 0.0.0.0:6400"
|
|
pageserver -l 0.0.0.0:6400 -D /data
|
|
else
|
|
"$@"
|
|
fi
|