kexec-run: Get pubkeys for DOAS_USER.
doas is a smaller replacement for sudo, used by some distributions (such as Alpine).
This commit is contained in:
parent
84ee92b81f
commit
c090b94b08
1 changed files with 4 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue