Move vault to veracrypt (#148)

* Move vault to veracrypt

* Remove broken switch (windows does not support)
This commit is contained in:
Cyryl Płotnicki 2017-11-01 15:11:51 +00:00 committed by GitHub
parent 303367e32b
commit c9186c8722
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 5 deletions

View file

@ -206,8 +206,10 @@ if [[ -z $NOPYTHON3 ]]; then
PIP=pip PIP=pip
fi fi
echo "Upgrading pip" echo "Upgrading pip"
set +e
$SUDO $PIP install --upgrade pip setuptools $SUDO $PIP install --upgrade pip setuptools
$SUDO $PIP install --upgrade packaging $SUDO $PIP install --upgrade packaging
set -e
echo "Installing Nikola" echo "Installing Nikola"
$SUDO $PIP install --upgrade pygments-style-solarized ws4py watchdog webassets Nikola $SUDO $PIP install --upgrade pygments-style-solarized ws4py watchdog webassets Nikola
fi fi

View file

@ -2,6 +2,9 @@
set -e set -e
mkdir -p ~/.vault mkdir -p ~/.vault
sudo cryptsetup luksOpen ~/vaults/vault.img vault VERACRYPT="veracrypt"
sudo mount /dev/mapper/vault ~/.vault if [[ "$OSTYPE" == "darwin"* ]]; then
VERACRYPT="/Applications/VeraCrypt.app/Contents/MacOS/VeraCrypt"
fi
$VERACRYPT -t --mount ~/vaults/vault.vera ~/.vault
sudo chown $USER ~/.vault sudo chown $USER ~/.vault

View file

@ -1,6 +1,8 @@
#!/bin/bash #!/bin/bash
set -e set -e
sudo umount ~/.vault VERACRYPT="veracrypt"
sudo cryptsetup luksClose vault if [[ "$OSTYPE" == "darwin"* ]]; then
VERACRYPT="/Applications/VeraCrypt.app/Contents/MacOS/VeraCrypt"
fi
$VERACRYPT -t -d