summaryrefslogtreecommitdiff
path: root/network/zarafa/doinst.sh
diff options
context:
space:
mode:
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
+