2022-04-21 16:59:07 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
HOST_DOMAIN="dockerhost"
|
|
|
|
ping -q -c1 $HOST_DOMAIN > /dev/null 2>&1
|
|
|
|
if [ $? != 0 ]
|
|
|
|
then
|
|
|
|
HOST_IP=$(ip route | awk 'NR==1 {print $3}')
|
|
|
|
echo "$HOST_IP $HOST_DOMAIN" >> /etc/hosts
|
|
|
|
fi
|
|
|
|
|
2023-07-18 11:08:39 +00:00
|
|
|
exec node bundle.js --listen-api
|