Merge branch 'adduser' into 'master'

Fix CI failures

Closes #468

See merge request dbus/dbus!423
This commit is contained in:
Simon McVittie 2023-08-01 18:02:33 +00:00
commit 1d45d1c3f6
2 changed files with 4 additions and 1 deletions

View file

@ -314,6 +314,7 @@ opensuse mingw64 meson debug:
extends:
- .meson-common
- .suse-build
when: manual
variables:
ci_host: "x86_64-w64-mingw32"
ci_local_packages: "no"

View file

@ -173,7 +173,9 @@ 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 --gecos "" user
if ! getent passwd user > /dev/null; then
adduser --disabled-password --gecos "" user
fi
echo "user ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/nopasswd
chmod 0440 /etc/sudoers.d/nopasswd
fi