Browse Source

jvb: fix version for autoscaler config

* jvb: fix version for autoscaler config
Aaron van Meerten 1 year ago
parent
commit
4c009ad
1 changed files with 1 additions and 1 deletions
  1. 1 1
      jvb/rootfs/etc/cont-init.d/10-config

+ 1 - 1
jvb/rootfs/etc/cont-init.d/10-config

@@ -51,7 +51,7 @@ if [ -n "$AUTOSCALER_URL" ]; then
     if [ -f "$AUTOSCALER_SIDECAR_KEY_FILE" ]; then
     if [ -f "$AUTOSCALER_SIDECAR_KEY_FILE" ]; then
         echo "AUTOSCALER_URL found, enabling autoscaler sidecar"
         echo "AUTOSCALER_URL found, enabling autoscaler sidecar"
 
 
-        export JVB_VERSION="dpkg -s jitsi-videobridge2 | grep Version | awk '{print $2}' | sed 's/..$//'"
+        export JVB_VERSION="$(dpkg -s jitsi-videobridge2 | grep Version | awk '{print $2}' | sed 's/..$//')"
 
 
         [ -z "$AUTOSCALER_SIDECAR_PORT" ] && export AUTOSCALER_SIDECAR_PORT="6000"
         [ -z "$AUTOSCALER_SIDECAR_PORT" ] && export AUTOSCALER_SIDECAR_PORT="6000"
         [ -z "$JIBRI_WEBHOOK_SUBSCRIBERS" ] && export JIBRI_WEBHOOK_SUBSCRIBERS="http://localhost:$AUTOSCALER_SIDECAR_PORT/hook"
         [ -z "$JIBRI_WEBHOOK_SUBSCRIBERS" ] && export JIBRI_WEBHOOK_SUBSCRIBERS="http://localhost:$AUTOSCALER_SIDECAR_PORT/hook"