fix dev scripts.

This commit is contained in:
Miroslav Šedivý
2024-06-16 16:26:42 +02:00
parent f65f262d48
commit ae117ccdbb
5 changed files with 18 additions and 8 deletions

View File

@ -2,8 +2,8 @@
cd "$(dirname "$0")"
if [ "$(docker images -q neko_server_build 2> /dev/null)" == "" ]; then
echo "Image 'neko_server_build' not found. Run ./build first."
exit 1
echo "Image 'neko_server_build' not found. Run ./build first."
exit 1
fi
docker run -it --rm \

4
dev/go
View File

@ -2,8 +2,8 @@
cd "$(dirname "$0")"
if [ "$(docker images -q neko_server_build 2> /dev/null)" == "" ]; then
echo "Image 'neko_server_build' not found. Run ./build first."
exit 1
echo "Image 'neko_server_build' not found. Run ./build first."
exit 1
fi
docker run -it \

View File

@ -2,8 +2,8 @@
cd "$(dirname "$0")"
if [ "$(docker images -q neko_server_build 2> /dev/null)" == "" ]; then
echo "Image 'neko_server_build' not found. Run ./build first."
exit 1
echo "Image 'neko_server_build' not found. Run ./build first."
exit 1
fi
#

View File

@ -2,8 +2,8 @@
cd "$(dirname "$0")"
if [ -z "$(docker images -q neko_server_app 2> /dev/null)" ]; then
echo "Image 'neko_server_app' not found. Running ./build first."
./build
echo "Image 'neko_server_app' not found. Running ./build first."
./build
fi
if [ -z $NEKO_PORT ]; then
@ -22,6 +22,10 @@ if [ -z $NEKO_NAT1TO1 ]; then
fi
done
if [ -z $NEKO_NAT1TO1 ]; then
NEKO_NAT1TO1=$(hostname -I 2>/dev/null | awk '{print $1}')
fi
if [ -z $NEKO_NAT1TO1 ]; then
NEKO_NAT1TO1=$(hostname -i 2>/dev/null)
fi