File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,10 @@ WORKDIR $HOME
108108COPY --from=builder /ejabberd/runtime .
109109COPY bin/* bin/
110110COPY --from=api /go/bin/ejabberdapi bin/ejabberdapi
111- RUN chmod 755 bin/ejabberdctl bin/ejabberdapi bin/erl bin/captcha*.sh
111+ RUN chmod 755 bin/ejabberdctl bin/ejabberdapi bin/erl bin/captcha*.sh \
112+ && mkdir -p /home/ejabberd/sql \
113+ && cp /home/ejabberd/lib/ejabberd-*/priv/sql/* /home/ejabberd/database/ \
114+ && cp /home/ejabberd/lib/ejabberd-*/priv/sql/* /home/ejabberd/sql/
112115COPY --chown=ejabberd:ejabberd conf conf/
113116ADD --chown=ejabberd:ejabberd https://download.process-one.net/cacert.pem conf/cacert.pem
114117
Original file line number Diff line number Diff line change @@ -285,7 +285,6 @@ stop_epmd()
285285
286286# make sure node not already running and node name unregistered
287287# if all ok, ensure runtime directory exists and make it current directory
288- # then (docker case) make .sql files available on database volume
289288check_start ()
290289{
291290 [ -n " $ERL_DIST_PORT " ] && return
@@ -302,7 +301,6 @@ check_start()
302301 }
303302 " $EPMD " -kill > /dev/null
304303 }
305- cp " $HOME_DIR " /lib/ejabberd-* /priv/sql/* " $HOME_DIR /database/"
306304}
307305
308306post_waiter_fork ()
You can’t perform that action at this time.
0 commit comments