0001-test-nspawn-make-run-tests-idempotent-54189.patch
test-nspawn | ||
---|---|---|
13 | 13 |
then |
14 | 14 |
apt update |
15 | 15 |
apt install -y wget ca-certificates gnupg2 git ansible postgresql sudo python python3 |
16 |
adduser --disabled-password --gecos "" testuser |
|
16 |
id testuser || adduser --disabled-password --gecos "" testuser
|
|
17 | 17 |
usermod -a -G sudo testuser |
18 |
echo 'testuser ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers |
|
18 |
grep -q testuser /etc/sudoers || echo 'testuser ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
|
19 | 19 |
chown -R testuser /opt/publik-devinst |
20 | 20 |
/usr/bin/wget https://deb.entrouvert.org/entrouvert.gpg |
21 | 21 |
apt-key add entrouvert.gpg |
22 |
- |