@@ -78,7 +78,7 @@ to start using it for administrative purposes.
7878You can register this account using the ` ejabberdctl ` script, for example:
7979
8080``` bash
81- docker exec -it ejabberd bin/ ejabberdctl register admin localhost passw0rd
81+ docker exec -it ejabberd ejabberdctl register admin localhost passw0rd
8282```
8383
8484### Check ejabberd log files
@@ -102,7 +102,7 @@ docker exec -it ejabberd sh
102102You can open a live debug Erlang console attached to a running container:
103103
104104``` bash
105- docker exec -it ejabberd bin/ ejabberdctl debug
105+ docker exec -it ejabberd ejabberdctl debug
106106```
107107
108108### CAPTCHA
@@ -126,7 +126,7 @@ captcha_cmd: /home/ejabberd/lib/ejabberd-21.1.0/priv/bin/captcha.sh
126126
127127Finally, reload the configuration file or restart the container:
128128` ` ` bash
129- docker exec ejabberd bin/ ejabberdctl reload_config
129+ docker exec ejabberd ejabberdctl reload_config
130130```
131131
132132If the CAPTCHA image is not visible, there may be a problem generating it
@@ -181,7 +181,7 @@ api_permissions:
181181Then you could register new accounts with this query :
182182
183183` ` ` bash
184- docker exec -it ejabberd bin/ ejabberdapi register --endpoint=http://127.0.0.1:5282/ --jid=admin@localhost --password=passw0rd
184+ docker exec -it ejabberd ejabberdapi register --endpoint=http://127.0.0.1:5282/ --jid=admin@localhost --password=passw0rd
185185` ` `
186186
187187# # Advanced container configuration
@@ -287,15 +287,15 @@ sudo chown 9000:9000 database
287287docker run -d --name $OLDCONTAINER -p 5222:5222 \
288288 -v $(pwd)/database:/home/ejabberd/database \
289289 ejabberd/ecs:23.01
290- docker exec -it $OLDCONTAINER bin/ ejabberdctl started
291- docker exec -it $OLDCONTAINER bin/ ejabberdctl register user1 localhost somepass
292- docker exec -it $OLDCONTAINER bin/ ejabberdctl registered_users localhost
290+ docker exec -it $OLDCONTAINER ejabberdctl started
291+ docker exec -it $OLDCONTAINER ejabberdctl register user1 localhost somepass
292+ docker exec -it $OLDCONTAINER ejabberdctl registered_users localhost
293293` ` `
294294
295295Methods to know the Erlang node name :
296296` ` ` bash
297297ls database/ | grep ejabberd@
298- docker exec -it $OLDCONTAINER bin/ ejabberdctl status
298+ docker exec -it $OLDCONTAINER ejabberdctl status
299299docker exec -it $OLDCONTAINER grep "started in the node" logs/ejabberd.log
300300` ` `
301301
@@ -320,7 +320,7 @@ and later come back here.
320320
3213212. Generate a backup file and check it was created :
322322` ` ` bash
323- docker exec -it $OLDCONTAINER bin/ ejabberdctl backup $OLDFILE
323+ docker exec -it $OLDCONTAINER ejabberdctl backup $OLDFILE
324324ls -l database/*.backup
325325` ` `
326326
@@ -341,12 +341,12 @@ docker run \
341341
3423425. Convert the backup file to new node name :
343343` ` ` bash
344- docker exec -it $NEWCONTAINER bin/ ejabberdctl mnesia_change_nodename $OLDNODE $NEWNODE $OLDFILE $NEWFILE
344+ docker exec -it $NEWCONTAINER ejabberdctl mnesia_change_nodename $OLDNODE $NEWNODE $OLDFILE $NEWFILE
345345` ` `
346346
3473476. Install the backup file as a fallback :
348348` ` ` bash
349- docker exec -it $NEWCONTAINER bin/ ejabberdctl install_fallback $NEWFILE
349+ docker exec -it $NEWCONTAINER ejabberdctl install_fallback $NEWFILE
350350` ` `
351351
3523527. Restart the container :
@@ -357,7 +357,7 @@ docker restart $NEWCONTAINER
3573578. Check that the information of the old database is available.
358358In this example, it should show that the account `user1` is registered :
359359` ` ` bash
360- docker exec -it $NEWCONTAINER bin/ ejabberdctl registered_users localhost
360+ docker exec -it $NEWCONTAINER ejabberdctl registered_users localhost
361361` ` `
362362
3633639. When the new container is working perfectly with the converted Mnesia database,
@@ -392,7 +392,7 @@ docker run \
392392
393393Check the old database content is available :
394394` ` ` bash
395- docker exec -it $OLDCONTAINER bin/ ejabberdctl registered_users localhost
395+ docker exec -it $OLDCONTAINER ejabberdctl registered_users localhost
396396` ` `
397397
398398Now that you have ejabberd running with access to the Mnesia database,
0 commit comments