Skip to content

Commit

Permalink
docker restart via retcode -2
Browse files Browse the repository at this point in the history
  • Loading branch information
SciLor committed Jul 12, 2023
1 parent 1166318 commit 8bcd3ce
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,11 @@ if [ ! -f "/teddycloud/certs/server/ca.der" ]; then
fi
fi

exec teddycloud
while true
do
teddycloud
retVal=$?
if [ $retVal -ne -2 ]; then
exit $retVal
fi
done

0 comments on commit 8bcd3ce

Please sign in to comment.