Skip to content

Commit

Permalink
kexec-run: Get pubkeys for DOAS_USER.
Browse files Browse the repository at this point in the history
doas is a smaller replacement for sudo, used by some
distributions (such as Alpine).
  • Loading branch information
shlevy authored and mergify[bot] committed Feb 28, 2024
1 parent 84ee92b commit c090b94
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nix/kexec-installer/kexec-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ extractPubKeys() {
}
extractPubKeys /root

if test -n "${DOAS_USER-}"; then
SUDO_USER="$DOAS_USER"
fi

if test -n "${SUDO_USER-}"; then
sudo_home=$(sh -c "echo ~$SUDO_USER")
extractPubKeys "$sudo_home"
Expand Down

0 comments on commit c090b94

Please sign in to comment.