#!/bin/bash
[ "$1" == "" ] && exec echo "Usage: $0 <SET_DIRECTORY>"

SET_DIRECTORY=$1

DIR=$(date +%Y%m%d -d "-1 day")
FILE_PATTERN=$(date +%Y-%m-%d -d "-1 day")

$HOME/bin/log_rotate_cmd /home/fndev/live/${SET_DIRECTORY} /home/fndev/live/${SET_DIRECTORY}/Log/${DIR} ${FILE_PATTERN}
