mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2025-09-08 02:10:40 +00:00
use env var for startup script
This commit is contained in:
10
entry.sh
10
entry.sh
@@ -1,10 +1,12 @@
|
||||
#!/bin/ash
|
||||
#!/bin/sh
|
||||
|
||||
echo "Waiting for memcached"
|
||||
|
||||
while ! nc -z -w 1 memcached 11211; do
|
||||
HOST=$(echo $MEMCACHE | cut -d: -f1)
|
||||
PORT=$(echo $MEMCACHE | cut -d: -f2)
|
||||
echo "Waiting for memcached at $HOST:$PORT"
|
||||
while ! nc -z -w 1 $HOST $PORT; do
|
||||
sleep 1
|
||||
echo "..."
|
||||
echo "retrying..."
|
||||
done
|
||||
|
||||
echo "Starting server"
|
||||
|
Reference in New Issue
Block a user