diff options
author | Adis Nezirovic <adis_at_linux.org.ba> | 2010-05-13 00:37:20 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:37:20 +0200 |
commit | f51a7a5260b53f75ace4f7efd2b96bcef2afd4b8 (patch) | |
tree | 35f97b30fdb702034a3444fbf7f6ea6e72ff4b69 /network/mod_wsgi/doinst.sh | |
parent | 2a693e3c85d226125082372c00358d4a7485ce06 (diff) | |
download | slackbuilds-f51a7a5260b53f75ace4f7efd2b96bcef2afd4b8.tar.gz |
network/mod_wsgi: Updated for version 3.1
Diffstat (limited to 'network/mod_wsgi/doinst.sh')
-rw-r--r-- | network/mod_wsgi/doinst.sh | 15 |
1 files changed, 15 insertions, 0 deletions
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 + |