#!/bin/bash

set -e
echo "decrypting..."
gpg2 -d ~/Nextcloud/vault.zip.gpg > ~/.vault.zip
echo "mounting..."
mkdir -p ~/.vault
archivemount -o nobackup ~/.vault.zip ~/.vault