diff options
Diffstat (limited to 'lib/container/remove')
-rwxr-xr-x | lib/container/remove | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/container/remove b/lib/container/remove index 275c867..7e9d871 100755 --- a/lib/container/remove +++ b/lib/container/remove @@ -1,7 +1,6 @@ #!/bin/sh -# container-tools - Manage systemd-nspawn containers -# Copyright (C) 2014-2018 Daniel Baumann <daniel.baumann@open-infrastructure.net> +# Copyright (C) 2014-2019 Daniel Baumann <daniel.baumann@open-infrastructure.net> # # SPDX-License-Identifier: GPL-3.0+ # @@ -22,8 +21,8 @@ set -e COMMAND="$(basename ${0})" -CONFIG="/etc/container-tools/config" -HOOKS="/etc/container-tools/hooks" +CONFIG="/etc/compute-tools/container/config" +HOOKS="/etc/compute-tools/container/hooks" MACHINES="/var/lib/machines" Parameters () @@ -125,6 +124,12 @@ case "${NAME}" in for NAME in ${NAMES} do + case "${VERBOSE}" in + true) + echo "Removing container ${NAME}..." + ;; + esac + container remove --name ${NAME} ${OPTIONS_ALL} || true done |