summaryrefslogtreecommitdiff
path: root/network/gophernicus/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'network/gophernicus/doinst.sh')
-rw-r--r--network/gophernicus/doinst.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/network/gophernicus/doinst.sh b/network/gophernicus/doinst.sh
new file mode 100644
index 0000000000..5d65187683
--- /dev/null
+++ b/network/gophernicus/doinst.sh
@@ -0,0 +1,14 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ rm $NEW
+ fi
+}
+
+if [ -f etc/xinetd.d/gophernicus.new ]; then
+ config etc/xinetd.d/gophernicus.new
+fi
+