[buildbot] buildmaster: fix permissions
LEDE Commits
lede-commits at lists.infradead.org
Sat Mar 6 07:07:57 GMT 2021
ynezz pushed a commit to buildbot.git, branch master:
https://git.openwrt.org/16616668ef7431488fcedf7e15e79cd7dabfeb73
commit 16616668ef7431488fcedf7e15e79cd7dabfeb73
Author: Petr Štetiar <ynezz at true.cz>
AuthorDate: Fri Mar 5 09:14:55 2021 +0100
buildmaster: fix permissions
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 at true.cz>
---
docker/buildmaster/files/entry.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/docker/buildmaster/files/entry.sh b/docker/buildmaster/files/entry.sh
index 82d8b15..437ad41 100644
--- a/docker/buildmaster/files/entry.sh
+++ b/docker/buildmaster/files/entry.sh
@@ -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 "$@"
More information about the lede-commits
mailing list