summaryrefslogtreecommitdiffstats
path: root/network/lizardfs/doinst.sh
diff options
context:
space:
mode:
author Marcin Szychowski2018-02-27 10:39:29 +0100
committer Willy Sudiarto Raharjo2018-03-03 02:42:07 +0100
commit16e19b7f76eede875e1697468baf618b6ed0b403 (patch)
tree1e662456488bb016a9e93f96982a8dce4dd7dbbc /network/lizardfs/doinst.sh
parentda1cfc02cfe67375bc6a10abc55a5030535f0db8 (diff)
downloadslackbuilds-16e19b7f76eede875e1697468baf618b6ed0b403.tar.gz
network/lizardfs: Added (GPLv3 implementation of GoogleFS).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'network/lizardfs/doinst.sh')
-rw-r--r--network/lizardfs/doinst.sh31
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