Merge pull request #58 from cyplo/vault
Better vault for sensitive data
This commit is contained in:
commit
51cecaa1d6
2 changed files with 13 additions and 0 deletions
7
tools/mount-vault
Executable file
7
tools/mount-vault
Executable 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
6
tools/umount-vault
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
sudo umount ~/.vault
|
||||||
|
sudo cryptsetup luksClose vault
|
||||||
|
|
Loading…
Reference in a new issue