#!/bin/bash
if [ ! "$(grep 'Custom syslog configuration' /etc/syslog.conf)" ]; then
cat >> /etc/syslog.conf << NIL
###########################################################
### Custom syslog configuration ###
###########################################################
*.info;mail.none;authpriv.*;cron.none;local6.none;local5.none @syslog.domain.com
###########################################################
NIL
/sbin/service syslog restart
else
echo "Syslog already has a custom configuration section. Leaving as is."
exit 1
fi