summaryrefslogtreecommitdiff
path: root/desktop/sun/doinst.sh
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2015-06-10 17:07:49 +0300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-06-14 07:55:26 +0700
commit9172564781caab0d83303808848adcb11cae977c (patch)
tree9fa2f725d5907bd5d4291eaf3207386030fd431a /desktop/sun/doinst.sh
parentccafe5f3cd58faf58b85d6de41bdbba6e24d7e01 (diff)
downloadslackbuilds-9172564781caab0d83303808848adcb11cae977c.tar.gz
desktop/sun: Updated for version 1.1.0.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
Diffstat (limited to 'desktop/sun/doinst.sh')
-rw-r--r--desktop/sun/doinst.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/desktop/sun/doinst.sh b/desktop/sun/doinst.sh
index 5dc84af9c0..6f22daeee7 100644
--- a/desktop/sun/doinst.sh
+++ b/desktop/sun/doinst.sh
@@ -8,6 +8,18 @@ config() {
fi
}
+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
+}
+
+preserve_perms etc/rc.d/rc.sun.new
config etc/sun/sun.conf.new
if [ -x /usr/bin/update-desktop-database ]; then