linux-image-manager/scripts/encryption/lock.sh

10 lines
409 B
Bash
Raw Normal View History

#!/bin/bash
2019-10-01 11:59:31 +02:00
#
# Locks the data
# @author Kevin Veen-Birkenbach [aka. Frantz]
2019-10-01 11:59:31 +02:00
#
2019-10-01 12:30:27 +02:00
# shellcheck source=/dev/null # Deactivate SC1090
source "$(dirname "$(readlink -f "${0}")")/base.sh" || echo "Loading base.sh failed." && exit 1
2019-10-01 12:30:27 +02:00
echo "Locking directory $DECRYPTED_PATH..."
fusermount -u "$DECRYPTED_PATH" && echo "Data is now encrypted." && echo "Removing directory $DECRYPTED_PATH..." && rmdir "$DECRYPTED_PATH"