fix ip for dev.

This commit is contained in:
Miroslav Šedivý
2024-09-17 19:24:50 +02:00
parent 0aa712278f
commit ef4385d471
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -13,6 +13,10 @@ if [ -z $APP_HOST ]; then
fi fi
done done
if [ -z $APP_HOST ]; then
APP_HOST=$(hostname -I 2>/dev/null | awk '{print $1}')
fi
if [ -z $APP_HOST ]; then if [ -z $APP_HOST ]; then
APP_HOST=$(hostname -i 2>/dev/null) APP_HOST=$(hostname -i 2>/dev/null)
fi fi
+4
View File
@@ -17,6 +17,10 @@ if [ -z $NEKO_ROOMS_NAT1TO1 ]; then
fi fi
done done
if [ -z $NEKO_ROOMS_NAT1TO1 ]; then
NEKO_ROOMS_NAT1TO1=$(hostname -I 2>/dev/null | awk '{print $1}')
fi
if [ -z $NEKO_ROOMS_NAT1TO1 ]; then if [ -z $NEKO_ROOMS_NAT1TO1 ]; then
NEKO_ROOMS_NAT1TO1=$(hostname -i 2>/dev/null) NEKO_ROOMS_NAT1TO1=$(hostname -i 2>/dev/null)
fi fi