test: test DynamicUser= with a fixed user

This commit is contained in:
Djalal Harouni
2016-11-03 08:37:15 +01:00
parent cdc5d5c55e
commit 2b9ac11ed9
4 changed files with 25 additions and 0 deletions
@@ -0,0 +1,8 @@
[Unit]
Description=Test DynamicUser with User=
[Service]
ExecStart=/bin/sh -x -c 'test "$$(id -G)" = "1" && test "$$(id -g)" = "1" && test "$$(id -u)" = "1"'
Type=oneshot
User=1
DynamicUser=yes