From 14cced0bad41e819f53dba79fb48b5660c21d4d4 Mon Sep 17 00:00:00 2001 From: Badlop Date: Wed, 7 Sep 2022 11:43:34 +0200 Subject: [PATCH] Container: No need to search for the ejabberdctl binary --- .github/container/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/container/Dockerfile b/.github/container/Dockerfile index 4f4b78970..a9f1c2e2a 100644 --- a/.github/container/Dockerfile +++ b/.github/container/Dockerfile @@ -63,6 +63,7 @@ RUN export PEM=/opt/ejabberd/conf/server.pem \ FROM alpine:3.15.4 ENV HOME=/opt/ejabberd +ARG VERSION=master RUN apk upgrade --update musl \ && apk add \ @@ -92,7 +93,7 @@ RUN echo -e \ \nexport CONFIG_DIR=/opt/ejabberd/conf \ \nexport LOGS_DIR=/opt/ejabberd/logs \ \nexport SPOOL_DIR=/opt/ejabberd/database \ - \nexec $(find /opt -name ejabberdctl) \"\$@\"" > /usr/local/bin/ejabberdctl \ + \nexec /opt/ejabberd-$VERSION/bin/ejabberdctl \"\$@\"" > /usr/local/bin/ejabberdctl \ && chmod +x /usr/local/bin/ejabberdctl RUN addgroup ejabberd -g 9000 \