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 5fb28930db..5dc84af9c0 100644 --- a/desktop/sun/doinst.sh +++ b/desktop/sun/doinst.sh @@ -1,3 +1,15 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + rm $NEW + fi +} + +config etc/sun/sun.conf.new + if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi |