]> git.ipfire.org Git - thirdparty/systemd.git/blame - test/test-execute/exec-supplementarygroups-multiple-groups-default-group-user.service
Merge pull request #14194 from yuwata/network-multipath-routing-12541
[thirdparty/systemd.git] / test / test-execute / exec-supplementarygroups-multiple-groups-default-group-user.service
CommitLineData
50ca7a35
DH
1[Unit]
2Description=Test for Supplementary Group with multiple groups without Group and User
3
4[Service]
b75f0c69 5ExecStart=/bin/sh -x -c 'HAVE=0; for g in $$(id -G); do test "$$g" = "%G" && HAVE=1; done; test "$$HAVE" -eq 1'
ccac6256
DC
6ExecStart=/bin/sh -x -c 'HAVE=0; for g in $$(id -G); do test "$$g" = "1" && HAVE=1; done; test "$$HAVE" -eq 1'
7ExecStart=/bin/sh -x -c 'HAVE=0; for g in $$(id -G); do test "$$g" = "2" && HAVE=1; done; test "$$HAVE" -eq 1'
8ExecStart=/bin/sh -x -c 'HAVE=0; for g in $$(id -G); do test "$$g" = "3" && HAVE=1; done; test "$$HAVE" -eq 1'
b75f0c69 9ExecStart=/bin/sh -x -c 'test "$$(id -g)" = "%G" && test "$$(id -u)" = "%U"'
50ca7a35
DH
10Type=oneshot
11SupplementaryGroups=1 2 3