diff options
Diffstat (limited to 'network/lizardfs/doinst.sh')
-rw-r--r-- | network/lizardfs/doinst.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/network/lizardfs/doinst.sh b/network/lizardfs/doinst.sh new file mode 100644 index 0000000000..36cf257bf2 --- /dev/null +++ b/network/lizardfs/doinst.sh @@ -0,0 +1,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 |