diff options
author | Thibaut Notteboom <thibaut.notteboom@gmail.com> | 2015-03-31 04:47:02 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-04-03 20:50:13 +0700 |
commit | 72aaed5ad37ea8f2d1e4a5d8529c022912de25c4 (patch) | |
tree | 077753231bc9b0785d70fd55180d2cd75c48b537 /ruby/passenger/doinst.sh | |
parent | 384de9faf3ce7f81ea1faa232f06d04a97b4a9d9 (diff) |
ruby/passenger: Added (A web server and application server).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'ruby/passenger/doinst.sh')
-rw-r--r-- | ruby/passenger/doinst.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ruby/passenger/doinst.sh b/ruby/passenger/doinst.sh new file mode 100644 index 0000000000000..debc570bd7380 --- /dev/null +++ b/ruby/passenger/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/extra/mod_passenger.conf.new |