~dricottone/huttese-apk

0c506ba25cce69d9bf481137980e62a1ab312ce9 — Drew DeVault 3 years ago 4ed7a3f
sr.ht-uacme: add workaround for user/group issue
2 files changed, 5 insertions(+), 1 deletions(-)

M sr.ht/sr.ht-uacme/APKBUILD
A sr.ht/sr.ht-uacme/sr.ht-uacme.post-install
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