From f51a7a5260b53f75ace4f7efd2b96bcef2afd4b8 Mon Sep 17 00:00:00 2001 From: Adis Nezirovic Date: Thu, 13 May 2010 00:37:20 +0200 Subject: network/mod_wsgi: Updated for version 3.1 --- network/mod_wsgi/doinst.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 network/mod_wsgi/doinst.sh (limited to 'network/mod_wsgi/doinst.sh') diff --git a/network/mod_wsgi/doinst.sh b/network/mod_wsgi/doinst.sh new file mode 100644 index 0000000000..7deb2518db --- /dev/null +++ b/network/mod_wsgi/doinst.sh @@ -0,0 +1,15 @@ +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/httpd/mod_wsgi.conf.new + -- cgit v1.2.3