]>
Commit | Line | Data |
---|---|---|
868c318b DDM |
1 | #!/bin/sh |
2 | # SPDX-License-Identifier: LGPL-2.1-or-later | |
3 | set -e | |
4 | ||
5 | if [ "$(grep '^ID=' /etc/os-release)" = "ID=\"centos\"" ] && [ "$(grep '^VERSION=' /etc/os-release)" = "VERSION=\"8\"" ]; then | |
868c318b DDM |
6 | alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1 |
7 | alternatives --set python3 /usr/bin/python3.9 | |
8 | fi | |
c9853672 DDM |
9 | |
10 | # Make sure the necessary test users are available in the build image. We do this here because the build | |
11 | # script does not run as root. | |
12 | if [ "$1" = "build" ]; then | |
13 | for id in 1 2 3; do | |
14 | getent group $id >/dev/null || echo "g testgroup$id $id -" | systemd-sysusers - | |
15 | done | |
16 | fi |