install-eg.sh: log rotation
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Fri, 11 Oct 2013 20:37:54 +0000 (13:37 -0700)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Fri, 11 Oct 2013 20:37:54 +0000 (13:37 -0700)
deployment/install-eg.sh

index 42d58e8..95a459c 100755 (executable)
@@ -58,7 +58,11 @@ a2ensite eg.conf
 mkdir /etc/apache2/ssl
 cd /etc/apache2/ssl && openssl req -new -x509 -days 365 -nodes -out server.crt -keyout server.key
 
-# TODO: set up log rotation
+# set up log rotation
+if [ ! -d "/etc/logrotate.d/evergreen" ]
+then
+  cp ${SITKACONF}/files/etc/logrotate.d/evergreen/${HOSTNAME} /etc/logrotate.d/evergreen
+fi
  
 # 0. osrf conf stuff 
 # FIXME: ensure osrf conf files point at a real, distinct db!