diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-11-04 06:06:25 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-11-04 06:06:25 +0000 |
commit | b3c61550a5063e56c94ac9dc87ba72c5b087abfe (patch) | |
tree | 56a573ad11cb15cd640ab043f8175c41c186c899 /lib | |
parent | Adding upstream version 20190811. (diff) | |
download | open-infrastructure-compute-tools-b3c61550a5063e56c94ac9dc87ba72c5b087abfe.tar.xz open-infrastructure-compute-tools-b3c61550a5063e56c94ac9dc87ba72c5b087abfe.zip |
Adding upstream version 20191104.upstream/20191104
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/container/list | 2 | ||||
-rwxr-xr-x | lib/container/start | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/container/list b/lib/container/list index 6b0d771..5427c90 100755 --- a/lib/container/list +++ b/lib/container/list @@ -367,7 +367,7 @@ do if ls "${MACHINES}/${CONTAINER}/etc/systemd/network"/*.network > /dev/null 2>&1 then - ADDRESS="$(awk -F= '/Address/ { print $2 }' ${MACHINES}/${CONTAINER}/etc/systemd/network/*.network | head -n1)" + ADDRESS="$(awk -F= '/^Address/ { print $2 }' ${MACHINES}/${CONTAINER}/etc/systemd/network/*.network | head -n1)" elif [ -e "${MACHINES}/${CONTAINER}/etc/network/interfaces" ] then ADDRESS="$(awk '/address/ { print $2 }' ${MACHINES}/${CONTAINER}/etc/network/interfaces | head -n1)" diff --git a/lib/container/start b/lib/container/start index 47c2907..13fc6ef 100755 --- a/lib/container/start +++ b/lib/container/start @@ -101,6 +101,9 @@ then Usage fi +# hooks +export NAME + case "${NAME}" in ALL) NAMES="$(${PROGRAM} list --format shell --stopped)" |