install-eg.sh: log rotation
[sitka/sitka-tools.git] / 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!