diff options
author | mario <mario@slackverse.org> | 2012-08-12 10:45:36 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-08-12 10:45:36 -0500 |
commit | f616c2cd6f3dd13e66f9798793804e314f409ad5 (patch) | |
tree | 6178fee9c059040f8f9dbdfe6749b4a27b222246 /network/mod_ruid2/doinst.sh | |
parent | 61156fd88d6840e9fbf007eec533d78bb6fba9e4 (diff) | |
download | slackbuilds-f616c2cd6f3dd13e66f9798793804e314f409ad5.tar.gz |
network/mod_ruid2: Added (an apache suexec module)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/mod_ruid2/doinst.sh')
-rw-r--r-- | network/mod_ruid2/doinst.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/network/mod_ruid2/doinst.sh b/network/mod_ruid2/doinst.sh new file mode 100644 index 0000000000..566967477a --- /dev/null +++ b/network/mod_ruid2/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/mod_ruid2.conf.new + |