Subject: [PATCH v2] testing/ejabberd: build with --enable-user=ejabberd

From: Alex McGrath <[email-masked]>
Date: Sat, 19 Feb 2022 12:38:22 +0000

Building without --enable-user=ejabberd causes INSTALLUSER to be empty
in /usr/sbin/ejabberdctl and when it is not set ejabberd will run as
root when /etc/init.d/ejabberd start is called.
---
v2: space -> tab

 testing/ejabberd/APKBUILD | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/testing/ejabberd/APKBUILD b/testing/ejabberd/APKBUILD
index a6919edfe5..46463b3590 100644
--- a/testing/ejabberd/APKBUILD
+++ b/testing/ejabberd/APKBUILD
@@ -3,7 +3,7 @@
 # Maintainer: John Regan <[email-masked]>
 pkgname=ejabberd
 pkgver=21.01
-pkgrel=1
+pkgrel=2
 pkgdesc="An erlang jabber server"
 url="https://www.ejabberd.im/"
 arch="all"
@@ -102,6 +102,7 @@ build() {
 		--localstatedir=/var \
 		--mandir=/usr/share/man \
 		--infodir=/usr/share/info \
+		--enable-user=ejabberd \
 		--enable-all
 	make
 }
-- 
2.35.1