diff options
Diffstat (limited to 'wire-desktop/bash-aliases')
-rw-r--r-- | wire-desktop/bash-aliases | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wire-desktop/bash-aliases b/wire-desktop/bash-aliases index 00cd7a1..aa18143 100644 --- a/wire-desktop/bash-aliases +++ b/wire-desktop/bash-aliases @@ -1,10 +1,11 @@ # -*- shell-script -*- mount-wire () { + gpg --decrypt ~/.var/wire/WireCrypt.key | \ asroot env XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR}" WIRE_DIR=~/.var/wire sh -ec ' device="$(losetup --show -f -P "${WIRE_DIR}/WireCrypt.img")" printf "%s\n" "${device}" > "${XDG_RUNTIME_DIR}/WireCrypt" - gpg --decrypt "${WIRE_DIR}/WireCrypt.key" | cryptsetup -d - open "${device}" WireCrypt + cryptsetup -d - open "${device}" WireCrypt mount /dev/mapper/WireCrypt "${WIRE_DIR}/WireCrypt.d" ' } |