slackware-current/source/ap/soma/doinst.sh
Patrick J Volkerding 1097672bbe Wed Jul 15 19:34:18 UTC 2020
a/kernel-firmware-20200715_69c7f0b-noarch-1.txz:  Upgraded.
ap/soma-3.3.5-noarch-1.txz:  Upgraded.
  Thanks to David Woodfall.
d/cmake-3.18.0-x86_64-1.txz:  Upgraded.
l/libzip-1.7.3-x86_64-1.txz:  Upgraded.
2020-07-16 08:59:52 +02:00

19 lines
545 B
Bash

config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
# If there's no config file by that name, mv it over:
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
# toss the redundant copy
rm $NEW
fi
# Otherwise, we leave the .new copy for the admin to consider...
}
config etc/soma/stations.conf.new
config etc/soma/options.conf.new
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi