summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormark <mark>2011-06-06 04:55:20 +0000
committermark <mark>2011-06-06 04:55:20 +0000
commit2ea9491004cdaeefd67bd011c9885464c200e957 (patch)
treee06e06f7c788031bb1f31740bb139f960ef78284
parent7c6b2ab31b1b030bbd69405d0d0b3c28792402b7 (diff)
allow freeside user to read RT config, from #11274
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2f096a94d..ff363302e 100644
--- a/Makefile
+++ b/Makefile
@@ -376,7 +376,8 @@ install-rt:
" ${RT_PATH}/etc/RT_SiteConfig.pm; fi
install-rt-initialdata:
- if [ ${RT_ENABLED} -eq 1 ]; then \
+ if [ ${RT_ENABLED} -eq 1 ] && [ -d ${RT_PATH} ]; then \
+ chown -R freeside:freeside ${RT_PATH}/etc; \
install -D -o freeside -g freeside -m 0440 rt/etc/initialdata \
${RT_PATH}/etc/initialdata; fi