aboutsummarylogtreecommitdiffstats
path: root/sftpgo-git.install
blob: 7039171de3a79119fe58c1c2eaab9aa519269da0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

post_install() {
  echo ":: You need to initialize a data provider prior to starting the service."
  echo "   This can be done using the initprovider command, for example, as root:"
  echo ""
  echo "   su - sftpgo -s /bin/bash -c 'sftpgo initprovider -c /etc/sftpgo'"
  echo ""
  echo "   take a look at sftpgo initprovider --help for usage and all available options"
}

pre_remove() {
  systemctl stop sftpgo.service
  echo "Leftover files may reside in /var/lib/sftpgo and /etc/sftpgo"
  echo "If you remove them, you may also want to remove user and group 'sftpgo'"
}