dotfiles/tools/mount-vault

8 lines
155 B
Text
Raw Normal View History

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