From: Andy Witter Date: Wed, 10 Apr 2019 23:19:06 +0000 (-0400) Subject: DropPrivs lines need to be commented out on the logging server X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=deea181cb2d664062b75538f4366806a475a0633;p=contrib%2Fpines%2Fgenasys.git DropPrivs lines need to be commented out on the logging server --- diff --git a/templates/setup.sh b/templates/setup.sh index fd4622d..b4a3806 100755 --- a/templates/setup.sh +++ b/templates/setup.sh @@ -318,7 +318,7 @@ fi ConfigLogging () { ### Configure logging for the cluster. -if ! cat /etc/hostname|grep -q logger +if ! cat /etc/hostname|grep -q logger ### non-logger boxes. logging clients then if [ -e /etc/rsyslog.d ] then @@ -338,7 +338,7 @@ then echo "mail.* @@logger01.CLUSTER_DOMAINNAME:514" >> /etc/rsyslog.d/60-evergreen-ils.conf fi fi -else +else ### setup logging services on this host. echo echo "Setting up logging for the cluster on this host" sleep 2 @@ -347,6 +347,8 @@ else sed -i 's/^#$InputUDPServerRun 514/$InputUDPServerRun 514/g' /etc/rsyslog.conf sed -i 's/^#$ModLoad imtcp/$ModLoad imtcp/g' /etc/rsyslog.conf sed -i 's/^#$InputTCPServerRun 514/$InputTCPServerRun 514/g' /etc/rsyslog.conf + sed -i 's/$PrivDropToUser/#$PrivDropToUser/g' /etc/rsyslog.conf + sed -i 's/$PrivDropToGroup/#$PrivDropToGroup/g' /etc/rsyslog.conf echo "alias findlogs=\"cd /var/log/evergreen/\\\$(date +%Y/%m/%d) && pwd\"" >> /root/.bashrc echo "alias osrfwarn=\"findlogs && tail -f osrfwarn.log | grep -v 'File does not exist' | grep -v 'config.hard_due_date'\"" >> /root/.bashrc echo "alias osrferror=\"findlogs && tail -f osrferror.log | grep -v 'File does not exist'\"" >> /root/.bashrc