linux-image-manager/scripts/lock.sh

7 lines
291 B
Bash
Raw Normal View History

#!/bin/bash
# Locks the data
# @author Kevin Veen-Birkenbach [aka. Frantz]
2019-10-01 08:50:17 +02:00
source "$(dirname "$(readlink -f "${0}")")/base.sh"
2019-09-30 23:48:03 +02:00
echo "Locking directory $DECRYPTED..."
2019-10-01 07:55:33 +02:00
fusermount -u "$DECRYPTED" && echo "Data is now encrypted." && echo "Removing directory $DECRYPTED..." && rmdir "$DECRYPTED"