2019-09-30 17:19:27 +02:00
|
|
|
#!/bin/bash
|
2019-10-01 11:59:31 +02:00
|
|
|
#
|
2019-09-30 17:19:27 +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
|
2020-05-02 12:39:00 +02:00
|
|
|
source "$(dirname "$(readlink -f "${0}")")/../base.sh" || (echo "Loading base.sh failed." && exit 1)
|
2020-05-03 20:36:49 +02:00
|
|
|
info "Locking directory $DECRYPTED_PATH..." &&
|
|
|
|
fusermount -u "$DECRYPTED_PATH" || error "Unmounting failed."
|
|
|
|
info "Data is now encrypted."
|
|
|
|
|
|
|
|
info "Removing directory $DECRYPTED_PATH..." &&
|
|
|
|
rmdir "$DECRYPTED_PATH" || error "Failed."
|