From da857f520bd141450965729c84f7ee4b7db59578 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Tue, 4 Apr 2017 14:04:13 +0200 Subject: [PATCH] Only stop apps and addons on data migration --- setup/start.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/setup/start.sh b/setup/start.sh index 0394b1461..18dd44b68 100755 --- a/setup/start.sh +++ b/setup/start.sh @@ -104,11 +104,10 @@ mkdir -p "${BOX_DATA_DIR}/acme" # acme keys echo "==> Check for old btrfs volumes" if df "${OLD_DATA_DIR}"; then echo "==> Cleanup btrfs volumes" - # First stop docker and thus the apps to be able to unmount - systemctl stop docker + # First stop all container to be able to unmount + docker ps -q | xargs docker stop umount "${OLD_DATA_DIR}" rm -rf "/root/user_data.img" - systemctl start docker else echo "==> No btrfs volumes found"; fi