summaryrefslogtreecommitdiff
path: root/community/mfs/mfs.install
blob: 433595cb0529cb8d88414d276a3897007302a4d4 (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
post_upgrade() {
  # Moving the old configuration to the new location at /etc/mfs/
  for fn in chunkserver hdd mount metalogger master exports topology; do
    if [ -e /etc/mfs$fn.cfg -a ! -e /etc/mfs/mfs$fn.cfg ]; then
      echo "Moving /etc/mfs$fn.cfg to /etc/mfs/mfs$fn.cfg"
      mv /etc/mfs$fn.cfg /etc/mfs/mfs$fn.cfg
    fi
  done
}

post_install() {
  post_upgrade
  echo
  echo 'For configuring MooseFS, the .cfg.dist files in /etc/mfs can'
  echo 'be used as a basis for writing the corresponding .cfg files.'
  echo
  echo 'To troubleshoot a service, like "mfschunkserver", just running'
  echo '"/usr/bin/mfschunkserver start" can be helpful.'
  echo
  echo 'Systemd is supported for starting services at boot.'
  echo
}

# vim:set ts=2 sw=2 et: