From 23357137da2d5dcf6d2fbc523a7bc45950e3b609 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 25 Jun 2021 20:26:15 +0200 Subject: Create ~/.var/opt and move ~/.var/{element,signal,wire} into ~/.var/opt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- signal-desktop/bash-aliases | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'signal-desktop/bash-aliases') diff --git a/signal-desktop/bash-aliases b/signal-desktop/bash-aliases index 1e7b01c..0404b2c 100644 --- a/signal-desktop/bash-aliases +++ b/signal-desktop/bash-aliases @@ -1,8 +1,8 @@ # -*- shell-script -*- mount-signal () { - gpg --decrypt ~/.var/signal/SignalCrypt.key | \ - asroot env XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR}" SIGNAL_DIR=~/.var/signal sh -ec ' + gpg --decrypt ~/.var/opt/signal/SignalCrypt.key | \ + asroot env XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR}" SIGNAL_DIR=~/.var/opt/signal sh -ec ' device="$(losetup --show -f -P "${SIGNAL_DIR}/SignalCrypt.img")" printf "%s\n" "${device}" > "${XDG_RUNTIME_DIR}/SignalCrypt" cryptsetup -d - open "${device}" SignalCrypt @@ -11,7 +11,7 @@ mount-signal () { } umount-signal () { - asroot env XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR}" SIGNAL_DIR=~/.var/signal sh -c ' + asroot env XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR}" SIGNAL_DIR=~/.var/opt/signal sh -c ' umount "${SIGNAL_DIR}/SignalCrypt.d" cryptsetup close SignalCrypt losetup --detach "$(cat -- "${XDG_RUNTIME_DIR}/SignalCrypt")" -- cgit v1.2.3-70-g09d2