allow freeside user to read RT config, from #11274
authormark <mark>
Mon, 6 Jun 2011 04:55:42 +0000 (04:55 +0000)
committermark <mark>
Mon, 6 Jun 2011 04:55:42 +0000 (04:55 +0000)
Makefile

index d5641b2..804e292 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -377,7 +377,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