diff options
author | Marco Bonetti <sid77@slackware.it> | 2010-03-17 12:54:05 -0500 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-05-13 13:31:56 +0200 |
commit | e5d67f6f5b19506fff93ca480bf5a347d4d64e45 (patch) | |
tree | 0974decb441ab5a2b16a8ccc15cb239e570047dd /network/sqlmap/doinst.sh | |
parent | dbd1e1116e18fb43f0ed61ddb4f8d8d5e0ff35be (diff) | |
download | slackbuilds-e5d67f6f5b19506fff93ca480bf5a347d4d64e45.tar.gz |
network/sqlmap: Updated for version 0.8.
Diffstat (limited to 'network/sqlmap/doinst.sh')
-rw-r--r-- | network/sqlmap/doinst.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/network/sqlmap/doinst.sh b/network/sqlmap/doinst.sh new file mode 100644 index 0000000000..62cfb92237 --- /dev/null +++ b/network/sqlmap/doinst.sh @@ -0,0 +1,13 @@ +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 opt/sqlmap/sqlmap.conf.new |