From 9172564781caab0d83303808848adcb11cae977c Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Wed, 10 Jun 2015 17:07:49 +0300 Subject: desktop/sun: Updated for version 1.1.0. Signed-off-by: Dimitris Zlatanidis --- desktop/sun/doinst.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'desktop/sun/doinst.sh') diff --git a/desktop/sun/doinst.sh b/desktop/sun/doinst.sh index 5dc84af9c0be1..6f22daeee7f23 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 -- cgit v1.2.3