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>
Fri, 25 Feb 2022 13:04:20 +0000 (13:04 +0000)
Signed-off-by: Simon McVittie <smcv@collabora.com>
(cherry picked from commit 52fcc82379cc24196407828eb042b7f2f10b3f52)

tools/ci-install.sh

index 5efc857..73a041b 100755 (executable)
@@ -178,7 +178,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