Don't need 2nd restart.

This commit is contained in:
James Valleroy 2014-04-12 17:26:43 -04:00
parent 415e89c02a
commit fe6803eb98

View File

@ -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