summaryrefslogtreecommitdiffstats
path: root/network/mod_fcgid/doinst.sh
diff options
context:
space:
mode:
author Marcel Saegebarth2013-10-29 21:40:57 +0100
committer Robby Workman2013-10-30 02:12:30 +0100
commit4c6a6ad71cccc2976b98748c0f6fa59a0bb2e7bd (patch)
tree2e3e1c0da6250551e657987656d191c8ebb29635 /network/mod_fcgid/doinst.sh
parent75ccbfff1e53f83101f731c5213d4763ff5f3bea (diff)
downloadslackbuilds-4c6a6ad71cccc2976b98748c0f6fa59a0bb2e7bd.tar.gz
network/mod_fcgid: Added (FastCGI interface module for Apache 2).
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'network/mod_fcgid/doinst.sh')
-rw-r--r--network/mod_fcgid/doinst.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/network/mod_fcgid/doinst.sh b/network/mod_fcgid/doinst.sh
new file mode 100644
index 0000000000..3ec2c63634
--- /dev/null
+++ b/network/mod_fcgid/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/httpd/mod_fcgid.conf.new