summaryrefslogtreecommitdiff
path: root/network/zarafa/doinst.sh
diff options
context:
space:
mode:
authorNiels Horn <niels.horn@gmail.com>2010-09-09 20:45:19 -0400
committerdsomero <xgizzmo@slackbuilds.org>2010-09-09 20:45:19 -0400
commit5286d9bfcf992629f2b19a742cd6e0fb2ca5a614 (patch)
tree2cbb78f6084877a3fd3d43f42a285eefdbfa8ecc /network/zarafa/doinst.sh
parent5b3f4eb2b1ffb3389f3a9fa53d53bec4e3c9a74d (diff)
downloadslackbuilds-5286d9bfcf992629f2b19a742cd6e0fb2ca5a614.tar.gz
network/zarafa: Updated for version 6.40.2.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'network/zarafa/doinst.sh')
-rw-r--r--network/zarafa/doinst.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/network/zarafa/doinst.sh b/network/zarafa/doinst.sh
index a7a54d81e2..ab8d7de91d 100644
--- a/network/zarafa/doinst.sh
+++ b/network/zarafa/doinst.sh
@@ -11,6 +11,22 @@ config() {
# Otherwise, we leave the .new copy for the admin to consider...
}
+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
+}
+
for cnf in etc/zarafa/*.cfg.new; do
config $cnf
done
+
+for rc in etc/rc.d/rc.zarafa-*.new; do
+ preserve_perms $rc
+done
+