Sha256: efd1e78eafa8159d2901621860cb7504a992e6b76edf2c94b0b6c29575d2322f
Contents?: true
Size: 528 Bytes
Versions: 2
Compression:
Stored size: 528 Bytes
Contents
#!/bin/sh RAILS_ENV=`/usr/local/ec2onrails/bin/rails_env` if [ -x /mnt/app/current ] ; then logfile=/mnt/app/current/log/$RAILS_ENV.log-`date +%Y%m%d` if [ -e $logfile ] ; then gzip $logfile /usr/local/ec2onrails/bin/archive_file --file $logfile.gz --dir logs/rails && rm $logfile.gz fi fi for f in `ls /mnt/log/nginx/*.log` ; do logfile=$f-`date +%Y%m%d` if [ -e $logfile ] ; then gzip $logfile /usr/local/ec2onrails/bin/archive_file --file $logfile.gz --dir logs/nginx && rm $logfile.gz fi done
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pauldowman-ec2onrails-0.9.10.0 | server/files/etc/cron.daily/logrotate_post |
pauldowman-ec2onrails-0.9.10.1 | server/files/etc/cron.daily/logrotate_post |