Clone04 commited on
Commit
885d465
1 Parent(s): 5ef6e5d

Update start.sh

Browse files
Files changed (1) hide show
  1. start.sh +3 -3
start.sh CHANGED
@@ -1,13 +1,13 @@
1
  #!/bin/bash
2
- if [[ -z "${"192.168.1.100"}" ]]; then
3
  echo "STATIC_IP environment variable not set. Exiting."
4
  exit 1
5
  fi
6
 
7
- echo "Using static IP: ${"192.168.1.100"}"
8
 
9
  # Configure network using Docker network settings
10
- ip addr add ${"192.168.1.100"}/24 dev eth0
11
  ip link set eth0 up
12
 
13
  # Your application or sleep command
 
1
  #!/bin/bash
2
+ if [[ -z "${STATIC_IP}" ]]; then
3
  echo "STATIC_IP environment variable not set. Exiting."
4
  exit 1
5
  fi
6
 
7
+ echo "Using static IP: ${STATIC_IP}"
8
 
9
  # Configure network using Docker network settings
10
+ ip addr add ${STATIC_IP}/24 dev eth0
11
  ip link set eth0 up
12
 
13
  # Your application or sleep command