|
From: <abe...@us...> - 2013-01-19 20:28:56
|
Revision: 5912
http://astlinux.svn.sourceforge.net/astlinux/?rev=5912&view=rev
Author: abelbeck
Date: 2013-01-19 20:28:50 +0000 (Sat, 19 Jan 2013)
Log Message:
-----------
prosody, generalize XMPP_HOSTNAME to allow a space separated list of VirtualHost's
Modified Paths:
--------------
branches/1.0/package/prosody/prosody.init
Modified: branches/1.0/package/prosody/prosody.init
===================================================================
--- branches/1.0/package/prosody/prosody.init 2013-01-19 19:09:32 UTC (rev 5911)
+++ branches/1.0/package/prosody/prosody.init 2013-01-19 20:28:50 UTC (rev 5912)
@@ -25,7 +25,7 @@
gen_xmpp_config()
{
- local m MODS ADD_MODS="" modules="" admins="" hostname cert key no_s2s log syslog error c2s_port s2s_port
+ local m vh MODS ADD_MODS="" modules="" admins="" hostname cert key no_s2s log syslog error c2s_port s2s_port
local LOG_OK SYSLOG_OK ERROR_LOG IFS c2s_idle_timeout
cert="${XMPP_CERT:-/etc/prosody/certs/server.crt}"
@@ -133,10 +133,14 @@
modules_enabled = { \"posix\", $modules }
modules_disabled = { }
-
-VirtualHost \"$hostname\"
"
+ unset IFS
+ for vh in $hostname; do
+ echo "VirtualHost \"$vh\""
+ echo ""
+ done
+
if [ -n "$XMPP_CONFERENCE" ]; then
echo "Component \"$XMPP_CONFERENCE\" \"muc\""
fi
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|