changeset 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 bf71cdd3f892
children bb965aa40b36 4e35cb59f86c
files prod/install-inventory-app.sh prod/update-inventory-app.sh
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/prod/install-inventory-app.sh	Thu Oct 28 08:04:36 2021 -0400
+++ b/prod/install-inventory-app.sh	Fri May 20 19:49:19 2022 +0100
@@ -33,6 +33,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
--- 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