mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
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:
parent
b0f0dd3227
commit
2c1ee698cc
4
.github/container/Dockerfile
vendored
4
.github/container/Dockerfile
vendored
@ -42,9 +42,7 @@ RUN cp -r _build/prod/rel/ejabberd/ /opt/ejabberd-$VERSION \
|
|||||||
&& mkdir -p /opt/ejabberd \
|
&& mkdir -p /opt/ejabberd \
|
||||||
&& mv /opt/ejabberd-$VERSION/conf /opt/ejabberd/conf
|
&& mv /opt/ejabberd-$VERSION/conf /opt/ejabberd/conf
|
||||||
|
|
||||||
RUN BINPATH=$(dirname $(find /opt -name msgs))/bin/ \
|
RUN cp -p 'tools/captcha'*'.sh' "/opt/ejabberd-$VERSION/lib"
|
||||||
&& mkdir -p $BINPATH \
|
|
||||||
&& cp tools/captcha*.sh $BINPATH
|
|
||||||
|
|
||||||
RUN [ ! -d .ejabberd-modules ] || cp -r .ejabberd-modules /opt/ejabberd/
|
RUN [ ! -d .ejabberd-modules ] || cp -r .ejabberd-modules /opt/ejabberd/
|
||||||
|
|
||||||
|
@ -156,7 +156,7 @@ docker exec -it ejabberd vi conf/ejabberd.yml
|
|||||||
|
|
||||||
and add the required options:
|
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
|
captcha_url: https://localhost:5443/captcha
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user