From 51933a63039ddd15179c57bbd3518e024c0f6e0f Mon Sep 17 00:00:00 2001 From: John Hodge Date: Mon, 11 Oct 2021 20:55:21 +0800 Subject: [PATCH] Gitlab CI - SETUID for autoauth --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 72fc89a..6f6de61 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,7 +27,9 @@ test: stage: test before_script: # Install the -dev versions to avoid needing to find the actual library names - - apt update && apt -y install libncurses-dev libmodbus-dev libsqlite3-dev libident netcat sqlite3 oidentd + - apt update && apt -y install libncurses-dev libmodbus-dev libsqlite3-dev libident netcat sqlite3 - useradd testuser && chown -R testuser . + # SETUID on the client, so it can use AUTOAUTH (ident doesn't work on the container) + - chmod u+s dispense script: - cd tests && su -c './TEST_basic.sh' testuser -- 2.20.1