Update start.sh
Browse files
start.sh
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
#!/bin/bash
|
2 |
-
if [[ -z "${
|
3 |
echo "STATIC_IP environment variable not set. Exiting."
|
4 |
exit 1
|
5 |
fi
|
6 |
|
7 |
-
echo "Using static IP: ${
|
8 |
|
9 |
# Configure network using Docker network settings
|
10 |
-
ip addr add ${
|
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
|