makedeb
Bidirectional NDP proxy and route maintainer to relay an IPv6 SLAAC network
Click here to go back to the commit logs for magpie.
Hash: c4b51d199bfecef6e1750c2b4fa1b1d10663ab70
Message: Fix prerm script for upgrade
diff --git a/.SRCINFO b/.SRCINFO
index 4e2656d..8976b3b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,7 +2,7 @@ generated-by = makedeb
pkgname = magpie
pkgbase = magpie
pkgdesc = Bidirectional NDP proxy and route maintainer to relay an IPv6 SLAAC network
-pkgrel = 3
+pkgrel = 4
pkgver = 1.2.0
url = https://github.com/Menci/magpie
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index f0df607..80bc18d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=magpie
pkgver=1.2.0
-pkgrel=3
+pkgrel=4
pkgdesc="Bidirectional NDP proxy and route maintainer to relay an IPv6 SLAAC network"
arch=(any)
url="https://github.com/Menci/magpie"
@@ -43,6 +43,7 @@ package() {
# Add install scripts
prerm="src/prerm"
- echo "systemctl disable --now magpie" > "${srcdir}/prerm"
+ echo '[ "$1" = "upgrade" ] && exit 0' > "${srcdir}/prerm"
+ echo "systemctl disable --now magpie" >> "${srcdir}/prerm"
}