Added vfs-cache

This commit is contained in:
2019-12-02 08:28:30 +01:00
parent 6624fd112d
commit 23deff45c0

View File

@@ -1,7 +1,7 @@
#!/usr/bin/with-contenv bash #!/usr/bin/with-contenv bash
mkdir /encrypted mkdir /encrypted
rm -Rf /root/.cache rm -Rf /root/.cache
rclone mount --daemon --allow-other gcache:/ /encrypted --log-file /tmp/rclone.log --log-level DEBUG rclone mount --daemon --allow-other --vfs-cache-mode minimal --no-modtime --write-back-cache gcache:/ /encrypted --log-file /tmp/rclone.log --log-level DEBUG
while [ ! -f "/encrypted/gocryptfs.conf" ] while [ ! -f "/encrypted/gocryptfs.conf" ]
do do
echo "Waiting for gocryptfs.conf to appear..." echo "Waiting for gocryptfs.conf to appear..."