summaryrefslogtreecommitdiff
path: root/network/gsd/doinst.sh
diff options
context:
space:
mode:
authorMarco Bonetti <sid77@slackware.it>2011-02-05 11:43:14 -0600
committerRobby Workman <rworkman@slackbuilds.org>2011-02-05 11:43:14 -0600
commit9ff19b47059b12ea3bc26812f98b76112bd4cba2 (patch)
treedd4f768d9fe7380b562465535ef2ec3ae5950c4d /network/gsd/doinst.sh
parent81ba726e111109f4af4ad769c0fa719d36b2aead (diff)
downloadslackbuilds-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.sh14
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
+