Add gocryptfs helper functions
This commit is contained in:
12
rc/gocryptfs.sh
Normal file
12
rc/gocryptfs.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
CRYPTED_DIR=$HOME/Sync/safe
|
||||
DECRYPTED_DIR=$HOME/mnt/safe
|
||||
|
||||
function safe-mount() {
|
||||
gocryptfs $CRYPTED_DIR $DECRYPTED_DIR
|
||||
}
|
||||
|
||||
function safe-unmount() {
|
||||
fusermount -u $DECRYPTED_DIR
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user