]> git.ipfire.org Git - thirdparty/systemd.git/blame - test/test-execute/exec-dynamicuser-supplementarygroups.service
tests: add spdx license header to test unit/link/network/conf files
[thirdparty/systemd.git] / test / test-execute / exec-dynamicuser-supplementarygroups.service
CommitLineData
22d3cfe5 1# SPDX-License-Identifier: LGPL-2.1-or-later
5c67067f
DH
2[Unit]
3Description=Test DynamicUser with SupplementaryGroups=
4
5[Service]
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'
5c67067f
DH
9Type=oneshot
10DynamicUser=yes
11SupplementaryGroups=1 2 3