DID inventory/import / bulk DID orders - phase 2, RT12754
[freeside.git] / Makefile
index d5641b2..59f5e2f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -375,9 +375,12 @@ install-rt:
          s'%%%RT_TIMEZONE%%%'${RT_TIMEZONE}'g;\
          s'%%%FREESIDE_URL%%%'${FREESIDE_URL}'g;\
        " ${RT_PATH}/etc/RT_SiteConfig.pm; fi
+       if [ ${RT_ENABLED} -eq 1 ]; then \
+         chown -R freeside:freeside ${RT_PATH}/etc; 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