Tripwire ignores global node modules
This commit is contained in:
parent
6e57b1b33b
commit
8aec3e3da3
|
@ -120,6 +120,11 @@ function install_tripwire {
|
|||
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
|
||||
fi
|
||||
# ignore global node modules
|
||||
if ! grep -q '!/usr/local/lib/node_modules' /etc/tripwire/twpol.txt; then
|
||||
sed -i '\|/etc\t\t->.*|a\ !/usr/local/lib/node_modules ;' /etc/tripwire/twpol.txt
|
||||
fi
|
||||
|
||||
# Not much is in /usr/local/bin other than project commands and avoiding it removes
|
||||
# problems with updates. This is a tradeoff, but not by much.
|
||||
sed -i '/\/usr\/local\/bin/d' /etc/tripwire/twpol.txt
|
||||
|
|
Loading…
Reference in New Issue