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
|
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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue