summaryrefslogtreecommitdiffstats
path: root/share/scripts
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2021-07-24 06:21:30 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2021-07-24 06:21:30 +0000
commit4e7cf8d1a4c120a45dd4581b36c73814e9e5d41b (patch)
treee2f0773d373c8ed5d5fe5fb0f8cca7ab3e724e79 /share/scripts
parentAlso removing lock file when force-stopping a container. (diff)
downloadcompute-tools-4e7cf8d1a4c120a45dd4581b36c73814e9e5d41b.tar.xz
compute-tools-4e7cf8d1a4c120a45dd4581b36c73814e9e5d41b.zip
Exporting IP variables to be used in host commands.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rwxr-xr-xshare/scripts/debconf3
1 files changed, 3 insertions, 0 deletions
diff --git a/share/scripts/debconf b/share/scripts/debconf
index 9af86f1..179e506 100755
--- a/share/scripts/debconf
+++ b/share/scripts/debconf
@@ -603,6 +603,9 @@ EOF
IPV6_ADDRESS1="$(${DIG} AAAA +short ${NAME} | tail -n1)"
# TODO: address parts
+
+ export IPV4_ADDRESS1 IPV4_ADDRESS1_PART1 IPV4_ADDRESS1_PART2 IPV4_ADDRESS1_PART3 IPV4_ADDRESS1_PART4
+ export IPV6_ADDRESS1
fi
sed -e "s|@FILE@|${FILE}|g" \