makedeb
简单好用的DDNS。自动更新域名解析到公网IP(支持阿里云、腾讯云dnspod、Cloudflare、华为云)
Click here to go back to the commit logs for ddns-go-bin.
Hash: ae523e237ddd082f2d9031205bc680a3ee62ece3
Message: Fix prerm script for upgrade
diff --git a/.SRCINFO b/.SRCINFO
index a00768d..4c32f61 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,7 +2,7 @@ generated-by = makedeb
pkgname = ddns-go-bin
pkgbase = ddns-go-bin
pkgdesc = 简单好用的DDNS。自动更新域名解析到公网IP(支持阿里云、腾讯云dnspod、Cloudflare、华为云)
-pkgrel = 4
+pkgrel = 5
pkgver = 3.7.2
url = https://github.com/jeessy2/ddns-go
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index f38785b..a1e0f95 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@ _repo=jeessy2/ddns-go
pkgname=${_pkgname}-bin
pkgver=3.7.2
-pkgrel=4
+pkgrel=5
pkgdesc='简单好用的DDNS。自动更新域名解析到公网IP(支持阿里云、腾讯云dnspod、Cloudflare、华为云)'
license=('MIT')
arch=('any')
@@ -45,5 +45,6 @@ package() {
# Add install scripts
prerm="src/prerm"
+ echo '[ "$1" = "upgrade" ] && exit 0' > "${srcdir}/prerm"
echo "systemctl disable --now ddns-go" > "${srcdir}/prerm"
}