mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-26 07:39:58 +00:00
12 lines
312 B
Bash
Executable File
12 lines
312 B
Bash
Executable File
#!/bin/sh
|
|
if [ "$1" = 'pageserver' ]; then
|
|
if [ ! -d "/data/timelines" ]; 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
|