slackware-current/source/a/shadow/doinst.sh
Patrick J Volkerding e4325044a8 Thu Jan 2 21:15:46 UTC 2020
a/dialog-1.3_20191210-x86_64-1.txz:  Upgraded.
a/shadow-4.8-x86_64-2.txz:  Rebuilt.
  Don't ship /etc/environment.new since sudo is no longer complaining about it.
ap/lxc-2.0.11_fad08f383-x86_64-4.txz:  Rebuilt.
  Make sure all initial devices are properly created.
  Fix accidental handling of rc.lxc as a modified-for-lxc init script.
  Thanks to crts.
d/python-setuptools-44.0.0-x86_64-1.txz:  Upgraded.
l/libedit-20191231_3.1-x86_64-1.txz:  Upgraded.
l/python-pillow-7.0.0-x86_64-1.txz:  Upgraded.
2020-01-03 08:59:49 +01:00

17 lines
482 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