mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-07-29 12:09:37 +00:00
Don't need 2nd restart.
This commit is contained in:
parent
415e89c02a
commit
fe6803eb98
@ -25,8 +25,6 @@ old_hostname=`debconf-show ejabberd | awk '/hostname/ { print $3 }'`
|
||||
# Based on http://www.process-one.net/docs/ejabberd/guide_en.html#htoc77
|
||||
|
||||
# Setup some variables
|
||||
OLDNODE=ejabberd@"$old_hostname"
|
||||
NEWNODE=ejabberd@"$hostname"
|
||||
BACKUP=/tmp/ejabberd.dump
|
||||
|
||||
echo "ejabberd ejabberd/hostname string $hostname" | debconf-set-selections
|
||||
@ -42,5 +40,4 @@ service ejabberd restart
|
||||
# Load backup database
|
||||
sleep 10
|
||||
ejabberdctl load $BACKUP
|
||||
ejabberdctl stop
|
||||
service ejabberd restart
|
||||
rm $BACKUP
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user