diff options
author | Adis Nezirovic <adis _at_ linux.org.ba> | 2010-05-11 15:18:43 +0200 |
---|---|---|
committer | Michiel van Wessem <michiel@slackbuilds.org> | 2010-05-11 15:18:43 +0200 |
commit | bae18fdb80148edcdae1b2576e950bd40bcbea4d (patch) | |
tree | 853acf5d4399911d51721f78e7cccd52e748755e /system/postgresql/doinst.sh | |
parent | fa2426f410d0f29f621d095e5e71b89f3f032252 (diff) | |
download | slackbuilds-bae18fdb80148edcdae1b2576e950bd40bcbea4d.tar.gz |
system/postgresql: Initial import
Diffstat (limited to 'system/postgresql/doinst.sh')
-rw-r--r-- | system/postgresql/doinst.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/system/postgresql/doinst.sh b/system/postgresql/doinst.sh new file mode 100644 index 0000000000..4eed17e907 --- /dev/null +++ b/system/postgresql/doinst.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +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/rc.d/rc.postgresql.new +config etc/logrotate.d/postgresql.new |