From 3398a732547c5c65f4e7e98442cf59d42b487b82 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Mon, 22 Aug 2022 22:04:51 +0200 Subject: [PATCH] test: install /etc/default/knot if available as well The knot.service on Ubuntu Jammy loads an env file which we didn't install, causing the service to fail: ``` knot.service: Will spawn child (service_enter_start_pre): /usr/sbin/knotc knot.service: Failed to load environment files: No such file or directory knot.service: Failed to run 'start-pre' task: No such file or directory knot.service: Failed with result 'resources'. knot.service: Service will not restart (restart setting) ``` --- test/TEST-75-RESOLVED/test.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/test/TEST-75-RESOLVED/test.sh b/test/TEST-75-RESOLVED/test.sh index b0021712e30..cbf35ee2926 100755 --- a/test/TEST-75-RESOLVED/test.sh +++ b/test/TEST-75-RESOLVED/test.sh @@ -27,6 +27,7 @@ test_append_files() { image_install /lib/tmpfiles.d/knot.conf image_install "${ROOTLIBDIR:?}/system/knot.service" image_install -o /etc/dbus-1/system.d/cz.nic.knotd.conf + image_install -o /etc/default/knot # Copy over our configuration mkdir -p "${workspace:?}/var/lib/knot/zones/" "${workspace:?}/etc/knot/" -- 2.47.3