switching to a single bash script instead of logrotate