#!/bin/bash
# Copyright Atomicorp, Inc.
# 2022
# License: Commercial



if [ -f /var/awp/etc/drift-detection.conf ]; then
	source /var/awp/etc/drift-detection.conf

else
        exit 1
fi

# Exit if this is a control panel environment. Not Supported
if [ -f /usr/local/psa ] || [ -f /usr/local/cpanel ]; then
	exit 0
fi

if [ "$DATE_RANGE" == "1 week" ]; then
	/var/awp/bin/drift-detection-report
fi

