Skip to content

Commit 9a61006

Browse files
committed
ignore FLATNOTES_PORT on kubernetes
1 parent 5b5369b commit 9a61006

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

entrypoint.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
#!/bin/sh
22

33
[ "$EXEC_TOOL" ] || EXEC_TOOL=gosu
4-
[ "$FLATNOTES_PORT" ] || FLATNOTES_PORT=8080
4+
5+
if [ "$KUBERNETES_PORT" -a "$FLATNOTES_PORT" ]; then
6+
echo "Warning: ignoring FLATNOTES_PORT=${FLATNOTES_PORT} on kubernetes"
7+
elif [ ! "$FLATNOTES_PORT" ]; then
8+
FLATNOTES_PORT=8080
9+
fi
510

611
set -e
712

0 commit comments

Comments
 (0)