mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-09 03:48:02 +02:00
Merge branch 'adduser' into 'master'
Fix CI failures Closes #468 See merge request dbus/dbus!423
This commit is contained in:
commit
1d45d1c3f6
2 changed files with 4 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue