From f7fe859c0a93730f44649c08d8a597fa4838705b Mon Sep 17 00:00:00 2001 From: Kay0u Date: Mon, 23 Dec 2019 18:36:31 +0800 Subject: [PATCH] add cache --- prepare.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/prepare.sh b/prepare.sh index c8dd43f..9564ea0 100755 --- a/prepare.sh +++ b/prepare.sh @@ -102,6 +102,10 @@ start_container () { lxc launch "yunohost-$DEBIAN_VERSION-$SNAPSHOT_NAME" "$CONTAINER_ID" 2>/dev/null + mkdir -p ${currentDir}/cache + chmod 777 ${currentDir}/cache + lxc config device add "$CONTAINER_ID" cache-folder disk path=/cache source="${currentDir}/cache" + set +x wait_container $CONTAINER_ID