From 72837dc5a9d6bd9000b1deae1f49433e1bfa4553 Mon Sep 17 00:00:00 2001 From: cvlc12 <97767846+cvlc12@users.noreply.github.com> Date: Wed, 17 Dec 2025 18:53:15 +0100 Subject: [PATCH] Add support for 'run0' as a root command option Still painful unless using a version of polkit with https://github.com/polkit-org/polkit/pull/533 (needs reauth for every command) but probably better than failing ? Signed-off-by: cvlc12 <97767846+cvlc12@users.noreply.github.com> --- scripts/installer.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/installer.sh b/scripts/installer.sh index db94c26ec..5a8ca5ab8 100755 --- a/scripts/installer.sh +++ b/scripts/installer.sh @@ -505,10 +505,13 @@ main() { elif type doas >/dev/null; then CAN_ROOT=1 SUDO="doas" + elif type run0 >/dev/null; then + CAN_ROOT=1 + SUDO="run0" fi if [ "$CAN_ROOT" != "1" ]; then echo "This installer needs to run commands as root." - echo "We tried looking for 'sudo' and 'doas', but couldn't find them." + echo "We tried looking for 'sudo', 'doas' and 'run0', but couldn't find them." echo "Either re-run this script as root, or set up sudo/doas." exit 1 fi