2016-10-07 21:46:23 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
echo "decrypting..."
|
2016-10-07 22:40:00 +01:00
|
|
|
gpg2 -d ~/Nextcloud/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
|
|
|
|