Container: Copy captcha scripts to /opt/ejabberd-*/lib like the installers

Instead of a path like
  /opt/ejabberd-master/lib/ejabberd-23.1.0/priv/bin
they are now in
  /opt/ejabberd-master/lib
This commit is contained in:
Badlop 2023-01-26 15:53:27 +01:00
parent b0f0dd3227
commit 2c1ee698cc
2 changed files with 2 additions and 4 deletions

View File

@ -42,9 +42,7 @@ RUN cp -r _build/prod/rel/ejabberd/ /opt/ejabberd-$VERSION \
&& mkdir -p /opt/ejabberd \
&& mv /opt/ejabberd-$VERSION/conf /opt/ejabberd/conf
RUN BINPATH=$(dirname $(find /opt -name msgs))/bin/ \
&& mkdir -p $BINPATH \
&& cp tools/captcha*.sh $BINPATH
RUN cp -p 'tools/captcha'*'.sh' "/opt/ejabberd-$VERSION/lib"
RUN [ ! -d .ejabberd-modules ] || cp -r .ejabberd-modules /opt/ejabberd/

View File

@ -156,7 +156,7 @@ docker exec -it ejabberd vi conf/ejabberd.yml
and add the required options:
```
captcha_cmd: /opt/ejabberd-22.04/lib/ejabberd-22.04/priv/bin/captcha.sh
captcha_cmd: /opt/ejabberd-22.04/lib/captcha.sh
captcha_url: https://localhost:5443/captcha
```