summaryrefslogtreecommitdiffstats
path: root/config/chroot_local-includes/usr/local/bin/tails-upgrade-frontend-wrapper
diff options
context:
space:
mode:
Diffstat (limited to 'config/chroot_local-includes/usr/local/bin/tails-upgrade-frontend-wrapper')
-rwxr-xr-xconfig/chroot_local-includes/usr/local/bin/tails-upgrade-frontend-wrapper6
1 files changed, 1 insertions, 5 deletions
diff --git a/config/chroot_local-includes/usr/local/bin/tails-upgrade-frontend-wrapper b/config/chroot_local-includes/usr/local/bin/tails-upgrade-frontend-wrapper
index c6176a2..1018bd0 100755
--- a/config/chroot_local-includes/usr/local/bin/tails-upgrade-frontend-wrapper
+++ b/config/chroot_local-includes/usr/local/bin/tails-upgrade-frontend-wrapper
@@ -74,9 +74,5 @@ check_free_memory "$MIN_MEMFREE" "$MIN_TOTAL_MEMFREE"
cd /
xhost +SI:localuser:"$RUN_AS_USER"
-if [ $# -gt 0 ] ; then
- gksudo -u "$RUN_AS_USER" "/usr/bin/tails-upgrade-frontend $@"
-else
- gksudo -u "$RUN_AS_USER" /usr/bin/tails-upgrade-frontend
-fi
+sudo -u "$RUN_AS_USER" /usr/bin/tails-upgrade-frontend $@
xhost -SI:localuser:"$RUN_AS_USER"