I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit c71a4285 authored by Anastasiya Soyka's avatar Anastasiya Soyka Committed by idk
Browse files

Detect When Running as a Podman Container

parent 4b87f4d2
No related branches found
No related tags found
1 merge request!84Detect When Running as a Podman Container
...@@ -22,7 +22,7 @@ for jar in `ls lib/*.jar`; do ...@@ -22,7 +22,7 @@ for jar in `ls lib/*.jar`; do
CLASSPATH=${CLASSPATH}:${jar} CLASSPATH=${CLASSPATH}:${jar}
done done
if [ -f /.dockerenv ]; then if [ -f /.dockerenv ] || [ -f /run/.containerenv ]; then
echo "[startapp] Running in container" echo "[startapp] Running in container"
if [ -z "$IP_ADDR" ]; then if [ -z "$IP_ADDR" ]; then
export IP_ADDR=$(hostname -i) export IP_ADDR=$(hostname -i)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment