Move vault to veracrypt (#148)
* Move vault to veracrypt * Remove broken switch (windows does not support)
This commit is contained in:
parent
303367e32b
commit
c9186c8722
3 changed files with 12 additions and 5 deletions
|
@ -206,8 +206,10 @@ if [[ -z $NOPYTHON3 ]]; then
|
|||
PIP=pip
|
||||
fi
|
||||
echo "Upgrading pip"
|
||||
set +e
|
||||
$SUDO $PIP install --upgrade pip setuptools
|
||||
$SUDO $PIP install --upgrade packaging
|
||||
set -e
|
||||
echo "Installing Nikola"
|
||||
$SUDO $PIP install --upgrade pygments-style-solarized ws4py watchdog webassets Nikola
|
||||
fi
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
|
||||
set -e
|
||||
mkdir -p ~/.vault
|
||||
sudo cryptsetup luksOpen ~/vaults/vault.img vault
|
||||
sudo mount /dev/mapper/vault ~/.vault
|
||||
VERACRYPT="veracrypt"
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
VERACRYPT="/Applications/VeraCrypt.app/Contents/MacOS/VeraCrypt"
|
||||
fi
|
||||
$VERACRYPT -t --mount ~/vaults/vault.vera ~/.vault
|
||||
sudo chown $USER ~/.vault
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
sudo umount ~/.vault
|
||||
sudo cryptsetup luksClose vault
|
||||
|
||||
VERACRYPT="veracrypt"
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
VERACRYPT="/Applications/VeraCrypt.app/Contents/MacOS/VeraCrypt"
|
||||
fi
|
||||
$VERACRYPT -t -d
|
||||
|
|
Loading…
Reference in a new issue