test: hardcode shell to use
let's make sure we always invoke our commands through /bin/sh, since on some distros su will use /bin/nologin (or whatever is listed in /etc/passwd) as shell otherwise and we don#t want that.
This commit is contained in:
parent
ec04aef442
commit
6e0ed2865e
|
@ -7,7 +7,7 @@ systemd-analyze log-level debug
|
||||||
runas() {
|
runas() {
|
||||||
declare userid=$1
|
declare userid=$1
|
||||||
shift
|
shift
|
||||||
su "$userid" -c 'XDG_RUNTIME_DIR=/run/user/$UID "$@"' -- sh "$@"
|
su "$userid" -s /bin/sh -c 'XDG_RUNTIME_DIR=/run/user/$UID exec "$@"' -- sh "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
runas nobody systemctl --user --wait is-system-running
|
runas nobody systemctl --user --wait is-system-running
|
||||||
|
|
Loading…
Reference in a new issue