bash: Add shorthands to mount client-side encrypted NAS directories
This commit is contained in:
parent
12683853e5
commit
e7d024f68a
1 changed files with 8 additions and 0 deletions
|
@ -157,3 +157,11 @@ function clamp_filename() {
|
|||
fi
|
||||
done
|
||||
}
|
||||
|
||||
function open_nas_decrypt() {
|
||||
gocryptfs -passfile /dev/stdin "$MACHINE_NAS_CIPHER_PATH" "$MACHINE_NAS_DECRYPT_PATH" <<< "$(pass gocrypt show "$MACHINE_NAS_CIPHER_PASS")"
|
||||
}
|
||||
|
||||
function close_nas_decrypt() {
|
||||
fusermount -u "$MACHINE_NAS_DECRYPT_PATH"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue