try su to get rid of root

sudo fails because it isn't setuid root... I don't know why su would be, but
maybe it is.
This commit is contained in:
Jean-Paul Calderone 2023-07-20 11:12:10 -04:00
parent 90e08314c2
commit baadf1fad4

View File

@ -196,7 +196,7 @@
if [ $(id -u) = "0" ]; then
# The test suite assumes non-root permissions. Get rid
# of the root permissions we seem to have.
SUDO="sudo -u nobody"
SUDO="${pkgs.su}/bin/su --shell /bin/sh - nobody --"
else
SUDO=""
fi