From 2553013ad11ad08fbd04bb7c6a2cfc6122a5413c Mon Sep 17 00:00:00 2001 From: Corentin LABBE Date: Wed, 10 Feb 2021 09:04:24 +0000 Subject: Fix rigths on /etc/lava-server/dispatcher-config When using persistent /etc/lava-server, a device-type could be copied without proper rights. But the fix of rights is done during docker build and at that time, volume are not setup, so not fixed. So the rigths fix need to be done at run time. --- lava-master/entrypoint.d/01_setup.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lava-master/entrypoint.d') diff --git a/lava-master/entrypoint.d/01_setup.sh b/lava-master/entrypoint.d/01_setup.sh index e3619f7..ad84072 100755 --- a/lava-master/entrypoint.d/01_setup.sh +++ b/lava-master/entrypoint.d/01_setup.sh @@ -217,4 +217,7 @@ if [ -e /etc/lava-dispatcher/certificates.d/$(hostname).key ];then sed -i 's,.*ENCRYPT=.*,ENCRYPT="--encrypt",' /etc/lava-server/lava-logs || exit $? sed -i 's,.*MASTER_CERT=.*,MASTER_CERT="--master-cert /etc/lava-dispatcher/certificates.d/$(hostname).key_secret",' /etc/lava-server/lava-logs || exit $? fi + +echo "DEBUG: fix owning rights on /etc/lava-server/dispatcher-config" +chown -Rc lavaserver:lavaserver /etc/lava-server/dispatcher-config exit 0 -- cgit 1.2.3-korg