diff options
author | willemw12 | 2022-07-27 21:11:37 +0200 |
---|---|---|
committer | willemw12 | 2022-07-27 21:11:37 +0200 |
commit | ea5241eb5233aa7002116d30169835a09dcbca8f (patch) | |
tree | 77bd7481c593504482ed49c8902c033ba1790e2e | |
parent | e7f0ba20825089adfd2cd752982ef896c17f11ec (diff) | |
download | aur-ea5241eb5233aa7002116d30169835a09dcbca8f.tar.gz |
Cleanup program files before upgrading
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 2 | ||||
-rw-r--r-- | sickchill-git.install | 12 |
3 files changed, 12 insertions, 4 deletions
@@ -1,6 +1,6 @@ pkgbase = sickchill-git pkgdesc = Automatic video library manager for TV shows - pkgver = 2021.11.10.r0 + pkgver = 2022.7.20.r0 pkgrel = 1 url = https://sickchill.github.io install = sickchill-git.install @@ -8,7 +8,7 @@ # That is the only reason why this package ends on -git. pkgname=sickchill-git -pkgver=2021.11.10.r0 +pkgver=2022.7.20.r0 pkgrel=1 pkgdesc="Automatic video library manager for TV shows" arch=('any') diff --git a/sickchill-git.install b/sickchill-git.install index b52160d2ee2b..74a04ec3b969 100644 --- a/sickchill-git.install +++ b/sickchill-git.install @@ -1,8 +1,17 @@ +# Remove all program files, including files created or modified by SickChill +_cleanup_app_files() { + rm -rf /opt/sickchill/app +} + post_install() { post_upgrade echo "==> Start and enable sickchill.service. Then visit http://localhost:8081/" } +pre_upgrade() { + _cleanup_app_files +} + post_upgrade() { systemd-sysusers sickchill.conf chown -R sickchill:sickchill /opt/sickchill/app @@ -14,8 +23,7 @@ pre_remove() { } post_remove() { - # Remove additional files created by the built-in updater - rm -rf /opt/sickchill/app + _cleanup_app_files echo "==> To delete the configuration files, run as root: rm -rf /opt/sickchill/data" |