install-eg.sh: do not set up local log rotation on prod
[sitka/sitka-tools.git] / deployment / install-eg.sh
index 480df17..e601034 100755 (executable)
@@ -88,9 +88,11 @@ done
 chown -R opensrf:opensrf /var/lock/apache2
 
 # set up log rotation
-if [ ! -f "/etc/logrotate.d/evergreen" ]
-then
-  cp ${SITKACONF}/files/etc/logrotate.d/evergreen/${HOSTNAME} /etc/logrotate.d/evergreen
+if [[ ! -n "$PROD" ]] ; then
+  if [ ! -f "/etc/logrotate.d/evergreen" ]
+  then
+    cp ${SITKACONF}/files/etc/logrotate.d/evergreen/${HOSTNAME} /etc/logrotate.d/evergreen
+  fi
 fi
  
 # 0. osrf conf stuff