DropPrivs lines need to be commented out on the logging server
authorAndy Witter <awitter@georgialibraries.org>
Wed, 10 Apr 2019 23:19:06 +0000 (19:19 -0400)
committerAndy Witter <awitter@georgialibraries.org>
Wed, 10 Apr 2019 23:19:06 +0000 (19:19 -0400)
templates/setup.sh

index fd4622d..b4a3806 100755 (executable)
@@ -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