install-osrf.sh: insert hostname in ejabberd.cfg if applicable
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Wed, 18 May 2016 19:21:28 +0000 (12:21 -0700)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Wed, 18 May 2016 19:21:28 +0000 (12:21 -0700)
deployment/install-osrf.sh

index 7097527..addf2f0 100755 (executable)
@@ -78,6 +78,7 @@ ldconfig
 # as root
 echo "Setting up ejabberd..."
 cp ${SITKACONF}/files/etc/ejabberd/ejabberd.cfg/${HOSTNAME} /etc/ejabberd/ejabberd.cfg
+sed -i "s|__HOSTNAME__|${THISHOST}|g" /etc/ejabberd/ejabberd.cfg
 chgrp ejabberd /etc/ejabberd/ejabberd.cfg
 chmod 640 /etc/ejabberd/ejabberd.cfg
 /etc/init.d/ejabberd restart && sleep 10 && \