Skip to content

Commit

Permalink
Adjust tests based on feedback in ComplianceAsCode#12433
Browse files Browse the repository at this point in the history
  • Loading branch information
Mab879 committed Sep 30, 2024
1 parent f986b7a commit 17ba62c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ if [[ -d ${RSYSLOG_D_FOLDER} ]]; then
do
for K in ${!REMOTE_METHODS[@]}
do
if grep -q "${REMOTE_METHODS[$K]}" ${rsyslog_d_file}; then
sed -i "/${REMOTE_METHODS[$K]}/d" ${rsyslog_d_file}
if grep -q "$K" ${rsyslog_d_file}; then
sed -i "/$K/d" ${rsyslog_d_file}
fi
done
done
Expand All @@ -25,5 +25,5 @@ if [[ ! -f /etc/rsyslog.conf ]]; then
touch /etc/rsyslog.conf
fi

echo "auth.*,authpriv.* /var/log/secure" >> $RSYSLOG_CONF
echo "auth.*;authpriv.* /var/log/secure" >> $RSYSLOG_CONF
echo "daemon.* /var/log/messages" >> $RSYSLOG_CONF

0 comments on commit 17ba62c

Please sign in to comment.