summaryrefslogtreecommitdiff
path: root/system/redis/doinst.sh
diff options
context:
space:
mode:
authorAudrius Kažukauskas <audrius@neutrino.lt>2012-12-02 12:35:22 -0500
committerdsomero <xgizzmo@slackbuilds.org>2012-12-11 16:21:54 -0500
commit5a09ed3366b1eddabd0bd5ed8a089035694f7b35 (patch)
tree30704227f082c6fca8d95e8b517b9c49e9cc82fb /system/redis/doinst.sh
parentfd627f875c0e587a5ff992b276fa1cf1a632f157 (diff)
downloadslackbuilds-5a09ed3366b1eddabd0bd5ed8a089035694f7b35.tar.gz
system/redis: Updated for version 2.6.5
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system/redis/doinst.sh')
-rw-r--r--system/redis/doinst.sh15
1 files changed, 14 insertions, 1 deletions
diff --git a/system/redis/doinst.sh b/system/redis/doinst.sh
index de6501f387..723cedbc2c 100644
--- a/system/redis/doinst.sh
+++ b/system/redis/doinst.sh
@@ -10,5 +10,18 @@ config() {
fi
# Otherwise, we leave the .new copy for the admin to consider...
}
-config etc/redis.conf.new
+preserve_perms() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ if [ -e $OLD ]; then
+ cp -a $OLD ${NEW}.incoming
+ cat $NEW > ${NEW}.incoming
+ mv ${NEW}.incoming $NEW
+ fi
+ config $NEW
+}
+
+config etc/redis.conf.new
+config etc/logrotate.d/redis.new
+preserve_perms etc/rc.d/rc.redis.new