diff options
author | Vincent Batts <vbatts@batts.mine.nu> | 2010-05-11 22:54:45 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 22:54:45 +0200 |
commit | d5e9300817f8181f84e68fee709000970a598af2 (patch) | |
tree | 3564b35e57586095561d5d7f5e7236fad8dd4e54 /network/fcgi/doinst.sh | |
parent | e8937fb0691fb613b249b397e12311ea14dd8aff (diff) | |
download | slackbuilds-d5e9300817f8181f84e68fee709000970a598af2.tar.gz |
network/fcgi: Added to 12.1 repository
Diffstat (limited to 'network/fcgi/doinst.sh')
-rw-r--r-- | network/fcgi/doinst.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/network/fcgi/doinst.sh b/network/fcgi/doinst.sh new file mode 100644 index 0000000000..900d59d924 --- /dev/null +++ b/network/fcgi/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/extra/httpd-fcgi.conf.new + |