From 0c506ba25cce69d9bf481137980e62a1ab312ce9 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 24 Sep 2021 19:15:37 +0200 Subject: [PATCH] sr.ht-uacme: add workaround for user/group issue --- sr.ht/sr.ht-uacme/APKBUILD | 4 +++- sr.ht/sr.ht-uacme/sr.ht-uacme.post-install | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 sr.ht/sr.ht-uacme/sr.ht-uacme.post-install diff --git a/sr.ht/sr.ht-uacme/APKBUILD b/sr.ht/sr.ht-uacme/APKBUILD index 5e03f6f..876dce1 100644 --- a/sr.ht/sr.ht-uacme/APKBUILD +++ b/sr.ht/sr.ht-uacme/APKBUILD @@ -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 } diff --git a/sr.ht/sr.ht-uacme/sr.ht-uacme.post-install b/sr.ht/sr.ht-uacme/sr.ht-uacme.post-install new file mode 100644 index 0000000..ed67a86 --- /dev/null +++ b/sr.ht/sr.ht-uacme/sr.ht-uacme.post-install @@ -0,0 +1,2 @@ +#!/bin/sh +chown acme:acme /var/www/.well-known/acme-challenge -- 2.45.2