summarylogtreecommitdiffstats
path: root/sickchill-git.install
blob: b52160d2ee2bfe1a68b69a6d2ef53fb0954d6a06 (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
25
26
post_install() {
  post_upgrade
  echo "==> Start and enable sickchill.service. Then visit http://localhost:8081/"
}

post_upgrade() {
  systemd-sysusers sickchill.conf
  chown -R sickchill:sickchill /opt/sickchill/app
}

pre_remove() {
  echo "==> Stopping sickchill.service..."
  systemctl stop sickchill.service
}

post_remove() {
  # Remove additional files created by the built-in updater
  rm -rf /opt/sickchill/app

  echo "==> To delete the configuration files, run as root: rm -rf /opt/sickchill/data"

  # Do not delete the 'sickchill' user automatically. It may still own files.
  # If 'sickchill' is the only user in group 'sickchill', then userdel will also delete the group.
  echo "==> To delete the \"sickchill\" user, run as root: userdel --force sickchill"
}