diff prod/update-inventory-app.sh @ 402:be08b5a62a77

INV-334: Updated inventory scripts to handle new reset property.
author Jason Klinger <klinger@nwoca.org>
date Fri, 20 May 2022 19:49:19 +0100
parents 3dc92d4243ef
children c3f58eddce4f
line wrap: on
line diff
--- a/prod/update-inventory-app.sh	Thu Oct 28 08:04:36 2021 -0400
+++ b/prod/update-inventory-app.sh	Fri May 20 19:49:19 2022 +0100
@@ -43,6 +43,10 @@
     dockerRunCommand="$dockerRunCommand -e LETSENCRYPT_EMAIL=$letsencryptEmail"
 fi
 #
+if [ ! -z "$applicationAdminReset" ]; then
+    dockerRunCommand="$dockerRunCommand -e APPLICATION_ADMIN_RESET=$applicationAdminReset"
+fi
+#
 if [ ! -z "$hostPort" ]; then
     dockerRunCommand="$dockerRunCommand -p $hostPort"
 fi