summaryrefslogtreecommitdiffstats
path: root/gis/geoserver/doinst.sh
diff options
context:
space:
mode:
author Benjamin Trigona-Harany <slackbuilds@jaxartes.net>2014-02-02 06:37:57 +0700
committer Robby Workman <rworkman@slackbuilds.org>2014-02-02 02:09:47 -0600
commitcea9c5812a286a23e1a2c6c641e37945fb09120c (patch)
treea52f4e3dce4a5894bd689ad6539277ecbf9f51fb /gis/geoserver/doinst.sh
parenta3758fe606413e19225d3496bedffe7e6aa47dfe (diff)
downloadslackbuilds-cea9c5812a286a23e1a2c6c641e37945fb09120c.tar.gz
slackbuilds-cea9c5812a286a23e1a2c6c641e37945fb09120c.tar.xz
gis/geoserver: Moved from Academic category.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'gis/geoserver/doinst.sh')
-rw-r--r--gis/geoserver/doinst.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/gis/geoserver/doinst.sh b/gis/geoserver/doinst.sh
new file mode 100644
index 0000000000..8c44f6584b
--- /dev/null
+++ b/gis/geoserver/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/tomcat/Catalina/localhost/geoserver.xml.new