summarylogtreecommitdiffstats
path: root/sftpgo.install
blob: f64e1b59280b98f1c98fb6edeeedbca96edf59c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
post_install() {
  setcap cap_net_bind_service=+ep /usr/bin/sftpgo
}

post_upgrade() {
  setcap cap_net_bind_service=+ep /usr/bin/sftpgo
}

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