|
|
|
@ -54,7 +54,7 @@ esac
|
|
|
|
|
if [ "$state_should" = "present" ]; then |
|
|
|
|
if [ -f "$p/add" ]; then |
|
|
|
|
while read -r value; do |
|
|
|
|
if ! grep -q "$value" "$e/content"; then |
|
|
|
|
if ! grep -qFx "$value" "$e/content"; then |
|
|
|
|
echo "ipset -! add $name $value" |
|
|
|
|
needToSave=1 |
|
|
|
|
fi |
|
|
|
@ -63,7 +63,7 @@ if [ "$state_should" = "present" ]; then
|
|
|
|
|
|
|
|
|
|
if [ -f "$p/del" ]; then |
|
|
|
|
while read -r value; do |
|
|
|
|
if grep -q "$value" "$e/content"; then |
|
|
|
|
if grep -qFx "$value" "$e/content"; then |
|
|
|
|
echo "ipset -! del $name $value" |
|
|
|
|
needToSave=1 |
|
|
|
|
fi |
|
|
|
|