summarylogtreecommitdiffstats
path: root/sabnzbd.install
blob: 8cb6bab0600b6bfa3854b3cda749ef261c5bdec9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Installation location of SABnzbd
SABNZBD_DIR="/opt/sabnzbd"  # should not be changed

## arg 1:  the new package version
## arg 2:  the old package version
pre_upgrade() {
  PID="$(pgrep -f SABnzbd.py)"

  if [ -n "${PID}" ];then
    systemctl stop sabnzbd.service
  fi
}

## arg 1:  the old package version
post_remove() {
  echo "==> There may be some files left in ${SABNZBD_DIR}."
}

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