Skip to content

Commit

Permalink
Merge branch 'master' into 'master'
Browse files Browse the repository at this point in the history
Detect When Running as a Podman Container

See merge request i2p-hackers/i2p.i2p!84
  • Loading branch information
eyedeekay committed Mar 18, 2023
2 parents ae4d3b5 + c71a428 commit 3ab904f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/rootfs/startapp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ for jar in `ls lib/*.jar`; do
CLASSPATH=${CLASSPATH}:${jar}
done

if [ -f /.dockerenv ]; then
if [ -f /.dockerenv ] || [ -f /run/.containerenv ]; then
echo "[startapp] Running in container"
if [ -z "$IP_ADDR" ]; then
export IP_ADDR=$(hostname -i)
Expand Down

0 comments on commit 3ab904f

Please sign in to comment.