aboutsummaryrefslogtreecommitdiffstats
path: root/wire-desktop/mount-wire
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xwire-desktop/mount-wire6
1 files changed, 5 insertions, 1 deletions
diff --git a/wire-desktop/mount-wire b/wire-desktop/mount-wire
index a6dde57..776792c 100755
--- a/wire-desktop/mount-wire
+++ b/wire-desktop/mount-wire
@@ -3,7 +3,11 @@
if mountpoint -q -- "${HOME}/.var/opt/wire/WireCrypt.d"; then
printf '%s\n' 'mount-wire: already mounted' >&2
elif test -e /dev/mapper/WireCrypt; then
- asroot env WIRE_DIR="${HOME}/.var/opt/wire" sh -ec \
+ asroot=asroot
+ if ! isfg; then
+ asroot=gasroot
+ fi
+ $asroot env WIRE_DIR="${HOME}/.var/opt/wire" sh -ec \
'mount -- /dev/mapper/WireCrypt "${WIRE_DIR}/WireCrypt.d"'
else
gpg --decrypt -- "${HOME}/.var/opt/wire/WireCrypt.key" | \