mirror of
https://github.com/systemd/systemd.git
synced 2024-10-29 04:55:36 +03:00
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 New Issue
Block a user