linux-image-manager/scripts/unlock.sh

11 lines
457 B
Bash
Raw Normal View History

#!/bin/bash
# Unlocks the data
# @author Kevin Veen-Birkenbach [aka. Frantz]
ENCRYPTED=$(readlink -f "$(dirname "$(readlink -f "${0}")")/../.encrypted");
DECRYPTED=$(readlink -f "$(dirname "$(readlink -f "${0}")")/../data");
2019-09-30 23:48:03 +02:00
echo "Unlocking directory $DECRYPTED..."
echo "Creating directory $DECRYPTED..."
2019-10-01 07:55:33 +02:00
mkdir "$DECRYPTED"
2019-09-30 23:48:03 +02:00
echo "Encrypting directory $DECRYPTED to $DECRYPTED..."
2019-10-01 07:55:33 +02:00
encfs "$ENCRYPTED" "$DECRYPTED" && echo "ATTENTION: DATA IS NOW DECRYPTED!"