2016-10-07 21:46:23 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
echo "decrypting..."
|
2016-10-08 07:04:46 +01:00
|
|
|
cp -v ~/Nextcloud/vault.zip.gpg ~/.vault.zip.gpg
|
|
|
|
cp -v ~/Nextcloud/vault.zip.gpg.sha512 ~/.vault.zip.gpg.sha512
|
|
|
|
sha512sum -c ~/.vault.zip.gpg.sha512
|
|
|
|
gpg2 -d ~/.vault.zip.gpg > ~/.vault.zip
|
2016-10-07 21:46:23 +01:00
|
|
|
echo "mounting..."
|
|
|
|
mkdir -p ~/.vault
|
2016-10-07 22:40:00 +01:00
|
|
|
archivemount -o nobackup ~/.vault.zip ~/.vault
|
2016-10-07 21:46:23 +01:00
|
|
|
|