add cache

This commit is contained in:
Kay0u 2019-12-23 18:36:31 +08:00
parent c43194e7ba
commit f7fe859c0a
No known key found for this signature in database
GPG key ID: 7FF262C033518333

View file

@ -102,6 +102,10 @@ start_container () {
lxc launch "yunohost-$DEBIAN_VERSION-$SNAPSHOT_NAME" "$CONTAINER_ID" 2>/dev/null 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 set +x
wait_container $CONTAINER_ID wait_container $CONTAINER_ID