mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
Store ejabberd backup in non-world-readable location.
This commit is contained in:
parent
298938de73
commit
48b6ff3728
@ -29,7 +29,7 @@ import os
|
|||||||
|
|
||||||
JWCHAT_CONFIG = '/etc/jwchat/config.js'
|
JWCHAT_CONFIG = '/etc/jwchat/config.js'
|
||||||
EJABBERD_CONFIG = '/etc/ejabberd/ejabberd.yml'
|
EJABBERD_CONFIG = '/etc/ejabberd/ejabberd.yml'
|
||||||
EJABBERD_BACKUP = '/tmp/ejabberd.dump'
|
EJABBERD_BACKUP = '/var/log/ejabberd/ejabberd.dump'
|
||||||
|
|
||||||
|
|
||||||
def parse_arguments():
|
def parse_arguments():
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
# Action to backup ejabberd database before changing hostname.
|
# Action to backup ejabberd database before changing hostname.
|
||||||
|
|
||||||
BACKUP=/tmp/ejabberd.dump
|
BACKUP=/var/log/ejabberd/ejabberd.dump
|
||||||
ejabberdctl dump $BACKUP
|
ejabberdctl dump $BACKUP
|
||||||
ejabberdctl stop
|
ejabberdctl stop
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user