M sr.ht/sr.ht-uacme/APKBUILD => sr.ht/sr.ht-uacme/APKBUILD +3 -1
@@ 9,7 9,7 @@ license="MIT"
depends="uacme openssl moreutils doas"
pkgusers="acme"
pkggroups="acme"
-install="$pkgname.pre-install"
+install="$pkgname.pre-install $pkgname.post-install"
source="
acme-update-certs
crontab
@@ 40,6 40,8 @@ package() {
install -dm775 -oacme -gacme "$pkgdir"/etc/ssl/uacme
install -dm770 -oacme -gacme "$pkgdir"/etc/ssl/uacme/private
+ # XXX: This user/group does not seem to stick when the package is installed:
+ # https://gitlab.alpinelinux.org/alpine/abuild/-/issues/10048
install -dm755 -oacme -gacme "$pkgdir"/var/www/.well-known/acme-challenge
}
A sr.ht/sr.ht-uacme/sr.ht-uacme.post-install => sr.ht/sr.ht-uacme/sr.ht-uacme.post-install +2 -0
@@ 0,0 1,2 @@
+#!/bin/sh
+chown acme:acme /var/www/.well-known/acme-challenge