projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add tests for dump commands
[tinc]
/
.ci
/
test
/
prepare.sh
diff --git
a/.ci/test/prepare.sh
b/.ci/test/prepare.sh
index
8a01a3f
..
82f103f
100755
(executable)
--- a/
.ci/test/prepare.sh
+++ b/
.ci/test/prepare.sh
@@
-1,6
+1,6
@@
#!/bin/sh
#!/bin/sh
-set -eu
+set -eu
x
if [ "$(id -u)" != 0 ] && sudo --preserve-env --non-interactive true; then
echo >&2 "sudo already configured"
if [ "$(id -u)" != 0 ] && sudo --preserve-env --non-interactive true; then
echo >&2 "sudo already configured"
@@
-12,3
+12,8
@@
useradd --user-group build
echo 'build ALL=(ALL) NOPASSWD: ALL' >/etc/sudoers.d/build
chmod 440 /etc/sudoers.d/build
visudo --check
echo 'build ALL=(ALL) NOPASSWD: ALL' >/etc/sudoers.d/build
chmod 440 /etc/sudoers.d/build
visudo --check
+
+if [ -n "${HOST:-}" ]; then
+ update-binfmts --enable
+ rm -f /dev/net/tun
+fi