]> git.proxmox.com Git - systemd.git/blobdiff - test/test-execute/exec-dynamicuser-supplementarygroups.service
New upstream version 240
[systemd.git] / test / test-execute / exec-dynamicuser-supplementarygroups.service
index a47b7fab78166afba75d1ef4b71fe4d5d7f86734..e3549c22c9c48c58317f7ef1153d011c90a44002 100644 (file)
@@ -2,7 +2,9 @@
 Description=Test DynamicUser with SupplementaryGroups=
 
 [Service]
-ExecStart=/bin/sh -x -c 'test "$$(id -G | cut -d " " --complement -f 1)" = "1 2 3"'
+ExecStart=/bin/sh -x -c 'HAVE=0; for g in $$(id -G); do test "$$g" = "1" && HAVE=1; done; test "$$HAVE" -eq 1'
+ExecStart=/bin/sh -x -c 'HAVE=0; for g in $$(id -G); do test "$$g" = "2" && HAVE=1; done; test "$$HAVE" -eq 1'
+ExecStart=/bin/sh -x -c 'HAVE=0; for g in $$(id -G); do test "$$g" = "3" && HAVE=1; done; test "$$HAVE" -eq 1'
 Type=oneshot
 DynamicUser=yes
 SupplementaryGroups=1 2 3