diff options
author | Mattias Andrée <maandree@kth.se> | 2021-06-25 19:14:42 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-06-25 19:14:42 +0200 |
commit | c1b82c1353a4813ed8ddd1cfe95404131acb0609 (patch) | |
tree | 2b10c504b6308916015425616a91a7e49a95c09a /signal-desktop/bash-aliases | |
parent | Fix bugs (diff) | |
download | dotfiles-c1b82c1353a4813ed8ddd1cfe95404131acb0609.tar.gz dotfiles-c1b82c1353a4813ed8ddd1cfe95404131acb0609.tar.bz2 dotfiles-c1b82c1353a4813ed8ddd1cfe95404131acb0609.tar.xz |
Fix bugs
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'signal-desktop/bash-aliases')
-rw-r--r-- | signal-desktop/bash-aliases | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/signal-desktop/bash-aliases b/signal-desktop/bash-aliases index 34a23b9..1e7b01c 100644 --- a/signal-desktop/bash-aliases +++ b/signal-desktop/bash-aliases @@ -1,10 +1,11 @@ # -*- shell-script -*- mount-signal () { + gpg --decrypt ~/.var/signal/SignalCrypt.key | \ asroot env XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR}" SIGNAL_DIR=~/.var/signal sh -ec ' device="$(losetup --show -f -P "${SIGNAL_DIR}/SignalCrypt.img")" printf "%s\n" "${device}" > "${XDG_RUNTIME_DIR}/SignalCrypt" - gpg --decrypt "${SIGNAL_DIR}/SignalCrypt.key" | cryptsetup -d - open "${device}" SignalCrypt + cryptsetup -d - open "${device}" SignalCrypt mount /dev/mapper/SignalCrypt "${SIGNAL_DIR}/SignalCrypt.d" ' } |