slackware-current/source/a/shadow/doinst.sh
Patrick J Volkerding 6a67784412 Sat Nov 17 03:03:49 UTC 2018
a/acpid-2.0.31-x86_64-1.txz:  Upgraded.
a/shadow-4.6-x86_64-1.txz:  Upgraded.
l/gsettings-desktop-schemas-3.28.1-x86_64-1.txz:  Upgraded.
l/libkarma-0.1.2-x86_64-1.txz:  Upgraded.
l/v4l-utils-1.16.2-x86_64-1.txz:  Upgraded.
xap/mozilla-thunderbird-60.3.1-x86_64-1.txz:  Upgraded.
  This is a bugfix release. For more information, see:
  https://www.mozilla.org/en-US/thunderbird/60.3.1/releasenotes/
2018-11-17 08:59:42 +01:00

18 lines
483 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/default/useradd.new
config etc/login.access.new
config etc/login.defs.new
config var/log/faillog.new
rm -f var/log/faillog.new