From 421d8231a199b0630d53577f94cc38e9b6f5433b Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 18 Sep 2019 11:43:03 -0400 Subject: [PATCH] builds.sr.ht: add post-upgrade --- sr.ht/builds.sr.ht/APKBUILD | 2 +- sr.ht/builds.sr.ht/builds.sr.ht.post-upgrade | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 sr.ht/builds.sr.ht/builds.sr.ht.post-upgrade diff --git a/sr.ht/builds.sr.ht/APKBUILD b/sr.ht/builds.sr.ht/APKBUILD index fa9ee04..9f1476c 100644 --- a/sr.ht/builds.sr.ht/APKBUILD +++ b/sr.ht/builds.sr.ht/APKBUILD @@ -24,7 +24,7 @@ source=" builds.sr.ht-worker.confd builds.sr.ht-worker.initd " -install="$pkgname.pre-install" +install="$pkgname.pre-install $pkgname.post-upgrade" builddir="$srcdir/$pkgname-$pkgver" export PKGVER=$pkgver options="$options !check" diff --git a/sr.ht/builds.sr.ht/builds.sr.ht.post-upgrade b/sr.ht/builds.sr.ht/builds.sr.ht.post-upgrade new file mode 100644 index 0000000..de36bb0 --- /dev/null +++ b/sr.ht/builds.sr.ht/builds.sr.ht.post-upgrade @@ -0,0 +1,3 @@ +#!/bin/sh +srht-migrate builds.sr.ht -a upgrade head +buildsrht-migrate -a upgrade head -- 2.45.2