Made rev. 2 changes
This commit is contained in:
parent
a1d13bd7be
commit
0dbdeb4751
@ -132,10 +132,7 @@ do /bin/mv "$f" "snort_$f"
|
|||||||
done
|
done
|
||||||
|
|
||||||
# We must add a whitespace after every "#" to make it compatible
|
# We must add a whitespace after every "#" to make it compatible
|
||||||
/usr/bin/sed -i -e 's/^\#alert/\# alert/g' snort_*
|
/usr/bin/sed -i "" -e 's/^\#alert/\# alert/g' snort_*
|
||||||
|
|
||||||
# Remove sed backups files
|
|
||||||
/bin/rm *-e
|
|
||||||
|
|
||||||
# Now move them all to the correct locations
|
# Now move them all to the correct locations
|
||||||
/bin/mv /tmp/snort_rules/snort_* /usr/local/etc/snort/rules/
|
/bin/mv /tmp/snort_rules/snort_* /usr/local/etc/snort/rules/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user