summarylogtreecommitdiffstats
path: root/lizardfs.install
blob: 5f777fe0489b458ef6c916a1b74dcdd7c29e5462 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
LFS_USER=mfs
LFS_GROUP=mfs

post_install() {
  if ! getent passwd $LFS_USER &> /dev/null; then
    useradd -u $LFS_UID -g $LFS_GROUP -m -s /bin/false $LFS_USER &> /dev/null
    passwd -l $LFS_USER &> /dev/null
    echo "  ==> User '$LFS_USER' created"
  fi
  echo
  echo 'For configuring LizardFS, the .cfg.dist files in /etc/mfs can'
  echo 'be used as a basis for writing the corresponding .cfg files.'
  echo
  echo 'For troubleshooting a service, like "mfschunkserver", just running'
  echo '"/usr/bin/mfschunkserver start" can be helpful.'
  echo
}

post_remove() {
  userdel $LFS_USER &> /dev/null
  echo "  ==> User '$LFS_USER' removed"
}