| 1 |
# SPDX-License-Identifier: LGPL-2.1-or-later |
| 2 |
[Unit] |
| 3 |
Description=Test for Supplementary Group with multiple groups without Group and User |
| 4 |
|
| 5 |
[Service] |
| 6 |
ExecStart=bash -x -c 'for g in $$(id -G); do test "$$g" = "%G" && exit 0; done; exit 1' |
| 7 |
ExecStart=bash -x -c 'for g in $$(id -G); do test "$$g" = "1" && exit 0; done; exit 1' |
| 8 |
ExecStart=bash -x -c 'for g in $$(id -G); do test "$$g" = "2" && exit 0; done; exit 1' |
| 9 |
ExecStart=bash -x -c 'test "$$(id -g)" = "%G" && test "$$(id -u)" = "%U"' |
| 10 |
Type=oneshot |
| 11 |
SupplementaryGroups=1 2 |