Semicolons
This commit is contained in:
parent
a8f0f58c98
commit
64afd95bd2
|
@ -9544,14 +9544,14 @@ function intrusion_detection {
|
||||||
sed -i 's|/var/log.*||g' /etc/tripwire/twpol.txt
|
sed -i 's|/var/log.*||g' /etc/tripwire/twpol.txt
|
||||||
# Ignore /etc/tripwire
|
# Ignore /etc/tripwire
|
||||||
if ! grep -q '!/etc/tripwire' /etc/tripwire/twpol.txt; then
|
if ! grep -q '!/etc/tripwire' /etc/tripwire/twpol.txt; then
|
||||||
sed -i '\|/etc\t\t->.*|a\ !/etc/tripwire;' /etc/tripwire/twpol.txt
|
sed -i '\|/etc\t\t->.*|a\ !/etc/tripwire ;' /etc/tripwire/twpol.txt
|
||||||
fi
|
fi
|
||||||
# ignore tt-rss cache
|
# ignore tt-rss cache
|
||||||
if ! grep -q '!/etc/share/tt-rss/cache' /etc/tripwire/twpol.txt; then
|
if ! grep -q '!/etc/share/tt-rss/cache' /etc/tripwire/twpol.txt; then
|
||||||
sed -i '\|/etc\t\t->.*|a\ !/etc/share/tt-rss/cache' /etc/tripwire/twpol.txt
|
sed -i '\|/etc\t\t->.*|a\ !/etc/share/tt-rss/cache ;' /etc/tripwire/twpol.txt
|
||||||
fi
|
fi
|
||||||
if ! grep -q '!/etc/share/tt-rss/lock' /etc/tripwire/twpol.txt; then
|
if ! grep -q '!/etc/share/tt-rss/lock' /etc/tripwire/twpol.txt; then
|
||||||
sed -i '\|/etc\t\t->.*|a\ !/etc/share/tt-rss/lock' /etc/tripwire/twpol.txt
|
sed -i '\|/etc\t\t->.*|a\ !/etc/share/tt-rss/lock ;' /etc/tripwire/twpol.txt
|
||||||
fi
|
fi
|
||||||
# Avoid logging the changed database
|
# Avoid logging the changed database
|
||||||
sed -i 's|$(TWETC)/tw.pol.*||g' /etc/tripwire/twpol.txt
|
sed -i 's|$(TWETC)/tw.pol.*||g' /etc/tripwire/twpol.txt
|
||||||
|
|
Loading…
Reference in New Issue