diff options
author | Dimitris Zlatanidis <d.zlatanidis@gmail.com> | 2015-05-15 02:11:45 +0300 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-05-17 23:45:35 +0700 |
commit | b61c3a3f7ec1ead0d56662fc5aec77025c3491fb (patch) | |
tree | 6db416b65c0c068e26ceba0ff57a3eb6fdfb0d62 /desktop/sun/doinst.sh | |
parent | fffd87aac5ac15a195ee2328f6a69a86fed08c48 (diff) |
desktop/sun: Updated for version 1.0.9.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
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 5fb28930db0b..5dc84af9c0be 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 |