#!/bin/bash

ENVIRONMENT=$1
KEYWORD=$(date -d 'yesterday' +%Y%m%d)

if [ "${ENVIRONMENT}" == "LIVE" ]; then
	sendscript allall <<< "$HOME/bin/logrotate_perf_snapshot ${KEYWORD} > /dev/null 2>&1"
elif [ "${ENVIRONMENT}" == "LOCAL" ]; then
	$HOME/bin/logrotate_perf_snapshot ${KEYWORD} > /dev/null 2>&1
fi
