changed persistence method of firewall rules
This commit is contained in:
@@ -10,13 +10,13 @@ if [ ! -f $md5old ]
|
||||
then
|
||||
printf "Error: %s don't exist\nCreating %s ...\n" "$md5old" "$md5old" >>$log
|
||||
md5sum $cron >$md5old
|
||||
exit 1
|
||||
exit 0
|
||||
fi
|
||||
if [ ! -s $md5old ]
|
||||
then
|
||||
printf "Error: %s is empty\nadding md5 hash to %s ...\n" "$md5old" "$md5old" >>$log
|
||||
md5sum $cron >$md5old
|
||||
exit 1
|
||||
exit 0
|
||||
fi
|
||||
if [ ! $(md5sum -c $md5old 2>/dev/null | grep $cron | cut -d' ' -f2) = "OK" ]
|
||||
then
|
||||
|
Reference in New Issue
Block a user