From b5869b6c422d744c61ec0b0a85f425627e6d6a7c Mon Sep 17 00:00:00 2001 From: David Kunz Date: Thu, 5 Jan 2017 08:50:48 +0100 Subject: Neutralization config-update. --- lib/container/config-update | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'lib/container/config-update') diff --git a/lib/container/config-update b/lib/container/config-update index b76e369..482eab6 100755 --- a/lib/container/config-update +++ b/lib/container/config-update @@ -35,18 +35,26 @@ do CNT_NETWORK_BRIDGE="veth-${NET}-${IP}:${BRIDGE}" CNT_OVERLAY="$(awk -F= '/^cnt.overlay=/ { print $2 }' ${FILE})" + BIND="$(awk -F= '/^bind=/ { print $2 }' ${FILE})" - BOOT="yes" - CAPABILITY="" + BIND="${BIND:-bind=/srv/data/${CONTAINER}:/srv/${CONTAINER};}" + + BOOT="$(awk -F= '/^boot=/ { print $2 }' ${FILE})" + CAPABILITY="$(awk -F= '/^capability=/ { print $2 }' ${FILE})" DIRECTORY="/var/lib/machines/${CONTAINER}" - DROP_CAPABILITY="" - LINK_JOURNAL="no" + DROP_CAPABILITY="$(awk -F= '/^drop-capability=/ { print $2 }' ${FILE})" + + LINK_JOURNAL="$(awk -F= '/^link-journal=/ { print $2 }' ${FILE})" + LINK_JOURNAL="${LINK_JOURNAL:-no}" + MACHINE="${CONTAINER}" NETWORK_VETH_EXTRA="veth-${NET}-${IP}:eth0" - PRIVATE_USERS="no" - REGISTER="yes" - BIND="${BIND:-bind=/srv/data/${CONTAINER}:/srv/${CONTAINER};}" + PRIVATE_USERS="$(awk -F= '/^private-users=/ { print $2 }' ${FILE})" + PRIVATE_USERS="${PRIVATE_USERS:-no}" + + REGISTER="$(awk -F= '/^register=/ { print $2 }' ${FILE})" + REGISTER="${REGISTER:-yes}" cat > ${FILE}-new << EOF # container-tools: ${CONTAINER} -- cgit v1.2.3