diff prod/update-inventory-app.sh @ 417:c3f58eddce4f

INV-475: Added duo properties to inventory scripts.
author Jason Klinger <klinger@nwoca.org>
date Mon, 08 May 2023 17:05:19 +0100
parents be08b5a62a77
children
line wrap: on
line diff
--- a/prod/update-inventory-app.sh	Mon Oct 17 12:00:24 2022 -0400
+++ b/prod/update-inventory-app.sh	Mon May 08 17:05:19 2023 +0100
@@ -51,6 +51,11 @@
     dockerRunCommand="$dockerRunCommand -p $hostPort"
 fi
 #
+if [ ! -z "$duo_enabled" ]; then
+    dockerRunCommand="$dockerRunCommand -e DUO_ENABLED=$duo_enabled -e DUO_CLIENT_ID=$duo_client_id -e DUO_CLIENT_SECRET=$duo_client_secret -e DUO_API_HOSTNAME=$duo_api_hostname -e DUO_FAIL_OPEN=$duo_fail_open "
+    dockerRunCommand="$dockerRunCommand -e DUO_USXS_HOST=$duo_usxs_host -e DUO_USXS_PORT=$duo_usxs_port -e DUO_USXS_CONTEXT=$duo_usxs_context -e DUO_MINUTES_UNTIL_EXPIRATION=$duo_minutes_until_expiration "
+fi
+#
 dockerRunCommand="$dockerRunCommand -d $artifactUrl/inventory-app:$appVersion"
 #
 # Execute constructed docker run command to create $entityId-inventory-app container connected to db and docker network