3261: Fix wrong test: wanted file size == 0, not file size != 0.
[arvados.git] / docker / workbench / apache2_foreground.sh
index c3facfe6f246578db9825ee46f697e1a583ba291..37650ab5daf9e8f929cad41bec98e011d34b1835 100755 (executable)
@@ -8,5 +8,10 @@ if [[ ! "$ENABLE_SSH" =~ (0|false|no|f|^$) ]]; then
   /etc/init.d/ssh start
 fi
 
+# Override the default API server address if necessary.
+if [[ "$API_PORT_443_TCP_ADDR" != "" ]]; then 
+  sed -i "s/localhost:9900/$API_PORT_443_TCP_ADDR/" /usr/src/arvados/apps/workbench/config/application.yml
+fi
+
 source /etc/apache2/envvars
 /usr/sbin/apache2 -D FOREGROUND