aboutsummaryrefslogtreecommitdiffstats
path: root/lava-master/entrypoint.d/01_setup.sh
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2021-02-10 09:04:24 +0000
committerCorentin LABBE <clabbe@baylibre.com>2021-02-10 09:28:43 +0000
commit2553013ad11ad08fbd04bb7c6a2cfc6122a5413c (patch)
tree4f8969fc648d0cbeab50f8acddc8c5f4fdee0bce /lava-master/entrypoint.d/01_setup.sh
parent8ef5855e819fe1c581ec3d7fbb43181de44c0817 (diff)
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.
Diffstat (limited to 'lava-master/entrypoint.d/01_setup.sh')
-rwxr-xr-xlava-master/entrypoint.d/01_setup.sh3
1 files changed, 3 insertions, 0 deletions
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