diff options
author | Marco Bonetti <sid77@slackware.it> | 2011-02-05 11:43:14 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-02-05 11:43:14 -0600 |
commit | 9ff19b47059b12ea3bc26812f98b76112bd4cba2 (patch) | |
tree | dd4f768d9fe7380b562465535ef2ec3ae5950c4d /network/gsd/doinst.sh | |
parent | 81ba726e111109f4af4ad769c0fa719d36b2aead (diff) | |
download | slackbuilds-9ff19b47059b12ea3bc26812f98b76112bd4cba2.tar.gz |
network/gsd: Added (Greenbone Security Desktop)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/gsd/doinst.sh')
-rw-r--r-- | network/gsd/doinst.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/network/gsd/doinst.sh b/network/gsd/doinst.sh new file mode 100644 index 0000000000..3b2a3e3a0f --- /dev/null +++ b/network/gsd/doinst.sh @@ -0,0 +1,14 @@ +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/openvas/gsd_log.conf.new + |