Skip to content

Commit

Permalink
Change container start script to stop on quit
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake Caldwell committed Aug 19, 2019
1 parent ac4d2f6 commit 904cc54
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions installer/docker/start_hnn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function retry_hnn {
return 1
else
echo "HNN GUI stopped by user. Restart container to open again"
return 0
exit 0
fi
}

Expand All @@ -33,7 +33,7 @@ python3 hnn.py
if [[ "$?" -eq "0" ]]; then
# HNN quit gracefully
echo "HNN GUI stopped by user. Restart container to open again"
sleep infinity
exit 0
fi

done=
Expand All @@ -42,10 +42,6 @@ XHOST=${DISPLAY%:0}
for PORT in 0 1 2 3 4; do
for XHOST in $XHOST 192.168.99.1 192.168.65.2 ""; do
retry_hnn $XHOST $PORT
if [[ "$?" -eq "0" ]]; then
# HNN quit gracefully
sleep infinity
fi
done
done

Expand Down

0 comments on commit 904cc54

Please sign in to comment.