diff options
Diffstat (limited to 'desktop/sun/doinst.sh')
-rw-r--r-- | desktop/sun/doinst.sh | 12 |
1 files changed, 12 insertions, 0 deletions
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 |