From 2ce0c35c1eed0cb7715feb0d5e4c394e7bc20c65 Mon Sep 17 00:00:00 2001 From: Shuai Lin Date: Fri, 11 Nov 2016 12:56:47 +0800 Subject: [PATCH] Do not create symlinks when bootstraping. --- image/seafile/create_data_links.sh | 4 ++++ launcher | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/image/seafile/create_data_links.sh b/image/seafile/create_data_links.sh index be349b8..fbb2193 100755 --- a/image/seafile/create_data_links.sh +++ b/image/seafile/create_data_links.sh @@ -3,6 +3,10 @@ set -e set -o pipefail +if [[ $SEAFILE_BOOTSRAP != "" ]]; then + exit 0 +fi + dirs=( conf ccnet diff --git a/launcher b/launcher index 213ac58..ef60d10 100755 --- a/launcher +++ b/launcher @@ -49,7 +49,7 @@ set_volumes() { bootstrap() { set_volumes - docker run --rm -it $volumes $image /scripts/bootstrap.py + docker run --rm -it -v SEAFILE_BOOTSRAP=1 $volumes $image /scripts/bootstrap.py } start() {