install-eg.sh: do not set up local log rotation on prod
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Wed, 8 Jul 2015 20:09:34 +0000 (13:09 -0700)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Wed, 8 Jul 2015 20:09:34 +0000 (13:09 -0700)
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
 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 
 fi
  
 # 0. osrf conf stuff