summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorCaleb Maclennan2021-05-07 21:46:35 +0300
committerCaleb Maclennan2021-05-07 21:51:03 +0300
commit8a2807e871b1ce0faf8c5bf0683c2892da1e7ff5 (patch)
tree93b57813fcd699ebd9ec53a500fb7481f65a90cf /PKGBUILD
downloadaur-8a2807e871b1ce0faf8c5bf0683c2892da1e7ff5.tar.gz
Initial upload: gitlab-upgrade-hook 1-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD20
1 files changed, 20 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b02b89f06e0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,20 @@
+# Maintainer: Caleb Maclennan <caleb@alerque.com>
+
+pkgname=gitlab-upgrade-hook
+pkgver=1
+pkgrel=1
+pkgdesc='Automatically shut down, run db:migrate, then start services after upgrade'
+arch=('any')
+depends=('pacman-contrib')
+source=('gitlab-pre.hook'
+ 'gitlab-post.hook'
+ 'gitlab-post.sh'
+ )
+sha256sums=('6996bb8e24142a050642dfe932907d1d4e6af74ecea392706d9407863458470e'
+ 'aa5f9a9f4af3b190e2ca52ffc567c3a35374877e5e8d39a34dcdb753cde22c7e'
+ '00aba3b1cf8d58e400e4dff195b1eba0c1379331b1fec9c11fcb3b6b8b58a749')
+
+package() {
+ install -D -m0644 -t "$pkgdir/usr/share/libalpm/hooks/" gitlab-{pre,post}.hook
+ install -D -m0755 -t "$pkgdir/usr/share/libalpm/scripts/" gitlab-post.sh
+}