install-osrf.sh: fix bug in Apache websockets setup eg303
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Fri, 9 Feb 2018 23:46:06 +0000 (15:46 -0800)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Fri, 9 Feb 2018 23:46:06 +0000 (15:46 -0800)
deployment/install-osrf.sh

index fe25456..f1eaf82 100755 (executable)
@@ -135,7 +135,7 @@ if [[ -n "$WEBSOCKETS" ]] ; then
   sh /usr/share/doc/apache2/examples/setup-instance websockets
   a2dismod websocket
   cp ${SITKACONF}/files/etc/apache2-websockets/apache2.conf/${HOSTNAME} /etc/apache2-websockets/apache2.conf
-  sed -i "s|__HOSTNAME__|${THISHOST}|g" /etc/apache2-websockets/apache2.conf
+  sed -i "s|__THISHOST__|${THISHOST}|g" /etc/apache2-websockets/apache2.conf
   cp ${SITKACONF}/files/etc/apache2-websockets/envvars/${HOSTNAME} /etc/apache2-websockets/envvars
 
   #/etc/init.d/apache2-websockets start