dotfiles/tools/mount-vault

8 lines
152 B
Text
Raw Normal View History

#!/bin/bash
set -e
mkdir -p ~/.vault
2017-06-17 10:15:43 +01:00
sudo cryptsetup luksOpen ~/vaults/vault.img vault
2016-10-16 11:52:05 +01:00
sudo mount /dev/mapper/vault ~/.vault
sudo chown $USER ~/.vault