2016-10-07 21:46:23 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
mkdir -p ~/.vault
|
2017-11-01 15:11:51 +00:00
|
|
|
VERACRYPT="veracrypt"
|
|
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
|
|
VERACRYPT="/Applications/VeraCrypt.app/Contents/MacOS/VeraCrypt"
|
|
|
|
fi
|
|
|
|
$VERACRYPT -t --mount ~/vaults/vault.vera ~/.vault
|
2016-10-16 11:52:05 +01:00
|
|
|
sudo chown $USER ~/.vault
|