mirror of
git://slackware.nl/current.git
synced 2024-12-30 10:24:23 +01:00
6a67784412
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/
18 lines
483 B
Bash
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
|
|
|