From 8972493d2ceee45f961f5f3aaf52b9020bcb471d Mon Sep 17 00:00:00 2001 From: Lukas Garberg Date: Wed, 4 Oct 2023 21:45:21 +0200 Subject: [PATCH] ci: Change how nipapd is started Change how nipapd is started when running the apt tests. From some reason the daemon won't start with systemd, so let's just start it manually. Also, it by default tries to drop privileges and then cannot read some postgres certificate in /root. Thus, avoid dropping privileges. And yes, the daemon won't start from systemd without dropping privileges either. --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d8684a7a3..aa8c77b4d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -147,6 +147,11 @@ jobs: sudo /etc/init.d/nipapd restart sudo systemctl status nipapd.service sudo ps auxf | grep nipap + sudo systemctl stop nipapd.service + sleep 5 + sudo sed -e "s/^user/#user/" -i /etc/nipap/nipap.conf + sudo nipapd --no-pid-file -c /etc/nipap/nipap.conf -df 2>&1 > /tmp/nipap.log & + - name: "Verify pre-upgrade data" if: ${{ matrix.upgrade == true }}