From 51d5b96fa1e48f6a8a41c88118b6ba4fc25e6261 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Wed, 5 Apr 2017 14:30:32 +0200 Subject: [PATCH] use "mountpoint" to check if we have the user data mounted --- setup/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/start.sh b/setup/start.sh index ece25656c..365a0d05a 100755 --- a/setup/start.sh +++ b/setup/start.sh @@ -102,7 +102,7 @@ mkdir -p "${BOX_DATA_DIR}/certs" mkdir -p "${BOX_DATA_DIR}/acme" # acme keys echo "==> Check for old btrfs volumes" -if df "${OLD_DATA_DIR}"; then +if mountpoint -q "${OLD_DATA_DIR}"; then echo "==> Cleanup btrfs volumes" # First stop all container to be able to unmount docker ps -q | xargs docker stop