From fd46df2c78c8890638826d12881fd91cd9f8889e Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 29 Jun 2022 17:34:32 +0200 Subject: [PATCH] hub.sr.ht: add post-upgrade --- sr.ht/hub.sr.ht/APKBUILD | 2 +- sr.ht/hub.sr.ht/hub.sr.ht.post-install | 0 sr.ht/hub.sr.ht/hub.sr.ht.post-upgrade | 3 +++ 3 files changed, 4 insertions(+), 1 deletion(-) mode change 100644 => 100755 sr.ht/hub.sr.ht/hub.sr.ht.post-install create mode 100755 sr.ht/hub.sr.ht/hub.sr.ht.post-upgrade diff --git a/sr.ht/hub.sr.ht/APKBUILD b/sr.ht/hub.sr.ht/APKBUILD index 315b7a1..0547f86 100644 --- a/sr.ht/hub.sr.ht/APKBUILD +++ b/sr.ht/hub.sr.ht/APKBUILD @@ -21,7 +21,7 @@ source=" " export PKGVER=$pkgver options="$options !check" -install="$pkgname.post-install" +install="$pkgname.post-install $pkgname.post-upgrade" build() { python3 setup.py build diff --git a/sr.ht/hub.sr.ht/hub.sr.ht.post-install b/sr.ht/hub.sr.ht/hub.sr.ht.post-install old mode 100644 new mode 100755 diff --git a/sr.ht/hub.sr.ht/hub.sr.ht.post-upgrade b/sr.ht/hub.sr.ht/hub.sr.ht.post-upgrade new file mode 100755 index 0000000..b2a172e --- /dev/null +++ b/sr.ht/hub.sr.ht/hub.sr.ht.post-upgrade @@ -0,0 +1,3 @@ +#!/bin/sh +srht-migrate hub.sr.ht -a upgrade head +hubsrht-migrate -a upgrade head -- 2.45.2