Store ejabberd backup in non-world-readable location.

This commit is contained in:
James Valleroy 2014-12-04 20:13:14 -05:00 committed by Sunil Mohan Adapa
parent 298938de73
commit 48b6ff3728
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ import os
JWCHAT_CONFIG = '/etc/jwchat/config.js'
EJABBERD_CONFIG = '/etc/ejabberd/ejabberd.yml'
EJABBERD_BACKUP = '/tmp/ejabberd.dump'
EJABBERD_BACKUP = '/var/log/ejabberd/ejabberd.dump'
def parse_arguments():

View File

@ -18,7 +18,7 @@
# Action to backup ejabberd database before changing hostname.
BACKUP=/tmp/ejabberd.dump
BACKUP=/var/log/ejabberd/ejabberd.dump
ejabberdctl dump $BACKUP
ejabberdctl stop