diff options
author | Menno Duursma <druiloor@zonnet.nl> | 2010-09-17 04:48:41 -0400 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-09-21 22:09:37 -0500 |
commit | f521bebc4ceb289fb95e940cdff0338969b2456d (patch) | |
tree | 8be87b32cef80aa328fc38b2390021bcfb573e10 /libraries/php-htscanner/doinst.sh | |
parent | bb94b73abd64a8108a904be8134b876b71484acf (diff) |
libraries/php-htscanner: Added (PHP extention)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/php-htscanner/doinst.sh')
-rw-r--r-- | libraries/php-htscanner/doinst.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libraries/php-htscanner/doinst.sh b/libraries/php-htscanner/doinst.sh new file mode 100644 index 0000000000000..7f5007cc76b67 --- /dev/null +++ b/libraries/php-htscanner/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/php/htscanner.ini.new + |