diff options
author | Nishant Limbachia <nishant@mnspace.net> | 2010-05-12 23:31:59 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-12 23:31:59 +0200 |
commit | 40a4b9bf9a4bf496b3d5d6f51540b18e735b18b8 (patch) | |
tree | 9f18bdc2ead5bcc3a713d56b31b005181b01de38 /network/clamav-unofficial-sigs/doinst.sh | |
parent | 438551fed7f5778db4cffe5c62c8b00233f4478d (diff) |
network/clamav-unofficial-sigs: Added to 12.2 repository
Diffstat (limited to 'network/clamav-unofficial-sigs/doinst.sh')
-rw-r--r-- | network/clamav-unofficial-sigs/doinst.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/network/clamav-unofficial-sigs/doinst.sh b/network/clamav-unofficial-sigs/doinst.sh new file mode 100644 index 000000000000..a7c044824bfd --- /dev/null +++ b/network/clamav-unofficial-sigs/doinst.sh @@ -0,0 +1,16 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +config etc/clamav-unofficial-sigs.conf.new +config etc/logrotate.d/clamav-unofficial-sigs.new + |