#!/bin/bash
REPORT_DATA=`grep "REPORT_DATA" /etc/inconcert/inconcert_cleanup_data_config.conf`
INTERACTION_DATA=`grep "INTERACTION_DATA" /etc/inconcert/inconcert_cleanup_data_config.conf`
REPOSITORY_DATA=`grep "REPOSITORY_DATA=" /etc/inconcert/inconcert_cleanup_data_config.conf`
REPOSITORY_DATA_CALL=`grep "REPOSITORY_DATA_CALL" /etc/inconcert/inconcert_cleanup_data_config.conf`
REPOSITORY_DATA_EMAIL=`grep "REPOSITORY_DATA_EMAIL" /etc/inconcert/inconcert_cleanup_data_config.conf`
DETAILINCREMENT_DATA=`grep "DETAILINCREMENT_DATA" /etc/inconcert/inconcert_cleanup_data_config.conf`
DIALERBATCH_DATA=`grep "DIALERBATCH_DATA" /etc/inconcert/inconcert_cleanup_data_config.conf`
OUTGOINGBATCHES_DATA=`grep "OUTGOINGBATCHES_DATA" /etc/inconcert/inconcert_cleanup_data_config.conf`
SOCIALNETWORKS_DATA=`grep "SOCIALNETWORKS_DATA" /etc/inconcert/inconcert_cleanup_data_config.conf`

if [ -n "$REPORT_DATA" ]; then
	sed -i -e "s/REPORT_DATA=.*/$REPORT_DATA/" /etc/inconcert/inconcert.conf
fi
if [ -n "$INTERACTION_DATA" ]; then
	sed -i -e "s/INTERACTION_DATA=.*/$INTERACTION_DATA/" /etc/inconcert/inconcert.conf
fi
if [ -n "$REPOSITORY_DATA" ]; then
	sed -i -e "s/REPOSITORY_DATA=.*/$REPOSITORY_DATA/" /etc/inconcert/inconcert.conf
fi
if [ -n "$REPOSITORY_DATA_CALL" ]; then
	sed -i -e "s/REPOSITORY_DATA_CALL=.*/$REPOSITORY_DATA_CALL/" /etc/inconcert/inconcert.conf
fi
if [ -n "$REPOSITORY_DATA_EMAIL" ]; then
	sed -i -e "s/REPOSITORY_DATA_EMAIL=.*/$REPOSITORY_DATA_EMAIL/" /etc/inconcert/inconcert.conf
fi
if [ -n "$DETAILINCREMENT_DATA" ]; then
	sed -i -e "s/DETAILINCREMENT_DATA=.*/$DETAILINCREMENT_DATA/" /etc/inconcert/inconcert.conf
fi
if [ -n "$DIALERBATCH_DATA" ]; then
	sed -i -e "s/DIALERBATCH_DATA=.*/$DIALERBATCH_DATA/" /etc/inconcert/inconcert.conf
fi
if [ -n "$OUTGOINGBATCHES_DATA" ]; then
	sed -i -e "s/OUTGOINGBATCHES_DATA=.*/$OUTGOINGBATCHES_DATA/" /etc/inconcert/inconcert.conf
fi
if [ -n "$SOCIALNETWORKS_DATA" ]; then
	sed -i -e "s/SOCIALNETWORKS_DATA=.*/$SOCIALNETWORKS_DATA/" /etc/inconcert/inconcert.conf
fi
