Merge pull request #58 from cyplo/vault

Better vault for sensitive data
This commit is contained in:
Cyryl Płotnicki 2016-10-16 16:43:26 +02:00 committed by GitHub
commit 51cecaa1d6
2 changed files with 13 additions and 0 deletions

7
tools/mount-vault Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash
set -e
mkdir -p ~/.vault
sudo cryptsetup luksOpen ~/Nextcloud/vault.img vault
sudo mount /dev/mapper/vault ~/.vault
sudo chown $USER ~/.vault

6
tools/umount-vault Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
set -e
sudo umount ~/.vault
sudo cryptsetup luksClose vault