A few useful debugging scripts

pull/28/head
Dan Caseley 2020-12-17 17:21:26 +00:00 committed by Guus der Kinderen
parent 9f6d82f60b
commit d25d3225cb
3 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,4 @@
#!/bin/bash
#For when you've built the monitoring plugin locally and want this in your next stack
cp ../openfire-monitoring-plugin/target/monitoring-openfire-plugin-assembly.jar ./xmpp/clustered/1/plugins/monitoring.jar
cp ../openfire-monitoring-plugin/target/monitoring-openfire-plugin-assembly.jar ./xmpp/clustered/2/plugins/monitoring.jar

3
get_logs.sh 100755
View File

@ -0,0 +1,3 @@
#!/bin/bash
docker exec -t openfire-docker-compose_xmpp1_1 cat /usr/local/openfire/logs/all.log > 1all.log
docker exec -t openfire-docker-compose_xmpp2_1 cat /usr/local/openfire/logs/all.log > 2all.log

View File

@ -0,0 +1,3 @@
#!/bin/bash
# Get a dump of the Openfire database in db_1 to peek at
docker exec -t openfire-docker-compose_db_1 pg_dump -U openfire openfire > peek.sql