blob: 36cf257bf26f9d8b8b9337334d40ae9c4c0d3955 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
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/mfs/mfschunkserver.cfg.new
config etc/mfs/mfshdd.cfg.new
config etc/mfs/mfsmetalogger.cfg.new
config etc/mfs/mfsmaster.cfg.new
config etc/mfs/mfsexports.cfg.new
config etc/mfs/mfstopology.cfg.new
config etc/mfs/mfsmount.cfg.new
config etc/mfs/globaliolimits.cfg.new
config etc/mfs/iolimits.cfg.new
config etc/mfs/mfsgoals.cfg.new
config etc/rc.d/rc.lizardfs.new
config etc/rc.d/rc.lizardfs-chunkserver.new
config etc/rc.d/rc.lizardfs-cgiserv.new
config etc/rc.d/rc.lizardfs-master.new
config etc/rc.d/rc.lizardfs-metalogger.new
config var/log/setup/setup.lizardfs-services.new
|