buildmaster: fix permissions
authorPetr Štetiar <ynezz@true.cz>
Fri, 5 Mar 2021 08:14:55 +0000 (09:14 +0100)
committerPetr Štetiar <ynezz@true.cz>
Fri, 5 Mar 2021 15:11:31 +0000 (16:11 +0100)
Otherwise buildbot wouldn't be able to access config.ini or certs and thus fail
to start:

 2021-03-05 08:08:18+0000 [-] Loading configuration from '/phase1/master.cfg'
 2021-03-05 08:08:18+0000 [-] error while parsing config file:
 ...
 configparser.NoSectionError: No section: 'general'

Signed-off-by: Petr Štetiar <ynezz@true.cz>
docker/buildmaster/files/entry.sh

index 82d8b15f829d88b7fafe3d71666419fddccb1949..437ad41421dec35d05ebded30bfa65e0b24fcd42 100644 (file)
@@ -1,5 +1,6 @@
 #!/usr/bin/env bash
 
-chown buildbot:buildbot /master
+chown --recursive buildbot:buildbot /master /config /certs
+chmod 0700 /master /config /certs
 
 /usr/sbin/gosu buildbot /start.sh "$@"