]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
CI: Make adduser properly non-interactive
authorSimon McVittie <smcv@collabora.com>
Wed, 5 Dec 2018 13:52:12 +0000 (13:52 +0000)
committerSimon McVittie <smcv@collabora.com>
Wed, 5 Dec 2018 14:54:24 +0000 (14:54 +0000)
Signed-off-by: Simon McVittie <smcv@collabora.com>
tools/ci-install.sh

index 0d9c769283de5857343e206e9c0986285d21f377..8f77c7e37370d64d5ed85d6c0127cbf264418ea5 100755 (executable)
@@ -161,7 +161,7 @@ case "$ci_distro" in
         if [ "$ci_in_docker" = yes ]; then
             # Add the user that we will use to do the build inside the
             # Docker container, and let them use sudo
-            adduser --disabled-password user </dev/null
+            adduser --disabled-password --gecos "" user
             echo "user ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/nopasswd
             chmod 0440 /etc/sudoers.d/nopasswd
         fi