#! /bin/sh
cd /application/nginx/logs/ && \
/usr/bin/mv www-access.log www-access-$(date +%F -d -1day).log
/usr/bin/mv blog-access.log blog-access-$(date +%F -d -1day).log
/usr/bin/mv domain-access.log domain-access-$(date +%F -d -1day).log
/application/nginx/sbin/nginx -s reload