Only include the used option for websocketd
authorBen Shum <ben@evergreener.net>
Fri, 26 Jul 2019 14:43:24 +0000 (10:43 -0400)
committerBen Shum <ben@evergreener.net>
Fri, 26 Jul 2019 15:08:04 +0000 (11:08 -0400)
The instructions include two ways of starting websocketd, only
apply one of them.

Signed-off-by: Ben Shum <ben@evergreener.net>
installer/stretch/eg_stretch_installer.sh

index 5112d2f..f0caf61 100755 (executable)
@@ -590,22 +590,13 @@ function configure_websockets {
     a2enmod ssl  
     echo Return Value = $?
 
-    echo Run websocketd, choosing option a or b, below:
-
-    echo 'a. Run websocketd as opensrf (optional)'
-
-    echo /usr/local/bin/websocketd --port 7682 /openils/bin/osrf-websocket-stdio &
-    echo # Other useful command line parameters include:
-    echo # --loglevel debug|trace|access|info|error|fatal
-    echo # --maxforks <n>
-    echo # --sameorigin=true
-    echo # --origin=host[:port][,host[:port]...]
-    echo # See https://github.com/joewalnes/websocketd/blob/master/help.go
+    echo Run websocketd, choosing option b:
 
     echo 'b. Run websocketd without a proxy (chosen)'
 
-    /usr/local/bin/websocketd --port 7682 --ssl --sslcert=/etc/apache2/ssl/server.crt \
-     --sslkey=/etc/apache2/ssl/server.key /openils/bin/osrf-websocket-stdio &
+    /usr/local/bin/websocketd --port 7682 --ssl --sslcert=/etc/apache2/ssl/server.crt --sslkey=/etc/apache2/ssl/server.key /openils/bin/osrf-websocket-stdio &
+
+    echo Return Value = $?
 
     echo End of configuring websockets =~-._
 }