summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorwillemw122022-07-27 21:11:37 +0200
committerwillemw122022-07-27 21:11:37 +0200
commitea5241eb5233aa7002116d30169835a09dcbca8f (patch)
tree77bd7481c593504482ed49c8902c033ba1790e2e
parente7f0ba20825089adfd2cd752982ef896c17f11ec (diff)
downloadaur-ea5241eb5233aa7002116d30169835a09dcbca8f.tar.gz
Cleanup program files before upgrading
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD2
-rw-r--r--sickchill-git.install12
3 files changed, 12 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b06303795649..5d86017fe457 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index 55254767abe5..8edb43929335 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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"