mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-07-01 14:45:38 +00:00
boring-nginx: ngxproxy: check availability
This commit is contained in:
@ -15,6 +15,10 @@ done
|
|||||||
|
|
||||||
while [ "$CONTAINER" == "" ]; do
|
while [ "$CONTAINER" == "" ]; do
|
||||||
read -p "Container: " CONTAINER
|
read -p "Container: " CONTAINER
|
||||||
|
ping -c 1 CONTAINER
|
||||||
|
if [ "$?" != "0" ]; then
|
||||||
|
echo "WARNING: ${CONTAINER} seems to be unavailable."
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
read -p "Port (blank means 80): " PORT
|
read -p "Port (blank means 80): " PORT
|
||||||
|
Reference in New Issue
Block a user