Moved ejabberd initialization check loop inside the if statement, since we only have to check for it in the first startup

svn path=/nixos/branches/upstart-0.6/; revision=18464
This commit is contained in:
Sander van der Burg 2009-11-19 15:17:04 +00:00
parent 9b000b3dcf
commit dd0f8b36d5

View File

@ -88,6 +88,8 @@ in
${if cfg.loadDumps == [] then "" else
''
if [ "$initialize" = "1" ]
then
# Wait until the ejabberd server is available for use
count=0
while ! ejabberdctl --config-dir ${cfg.confDir} --logs ${cfg.logsDir} --spool ${cfg.spoolDir} status
@ -103,8 +105,6 @@ in
sleep 1
done
if [ "$initialize" = "1" ]
then
${concatMapStrings (dump:
''
echo "Importing dump: ${dump}"