diff options
author | mario <mario@slackverse.org> | 2011-07-03 13:41:59 -0400 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-07-14 21:54:02 -0300 |
commit | afa1c01d62ab2bb4a56c47947d74ee639b75fa45 (patch) | |
tree | 189d91338cdfa2f15f7bf51d4e6f0769b0f8ba81 /development/freetds/doinst.sh | |
parent | 7ba2ccd2a0006abcd31a9ee71c0dfc339466a5f5 (diff) | |
download | slackbuilds-afa1c01d62ab2bb4a56c47947d74ee639b75fa45.tar.gz |
development/freetds: Added (Tabular Data Stream protocol)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'development/freetds/doinst.sh')
-rw-r--r-- | development/freetds/doinst.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/development/freetds/doinst.sh b/development/freetds/doinst.sh new file mode 100644 index 0000000000..a1c4c04475 --- /dev/null +++ b/development/freetds/doinst.sh @@ -0,0 +1,16 @@ +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/freetds/pool.conf.new +config etc/freetds/freetds.conf.new +config etc/freetds/locales.conf.new |