[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 9ac370c 1/2: Copy proprietary graphics if ava
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 9ac370c 1/2: Copy proprietary graphics if available; else use generic surrogates |
Date: |
Thu, 9 May 2019 09:20:01 -0400 (EDT) |
branch: master
commit 9ac370c36e07c4bd761d17808e839782e3c13ab4
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Copy proprietary graphics if available; else use generic surrogates
---
install_msw.sh | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/install_msw.sh b/install_msw.sh
index 5a60901..2a51aaf 100755
--- a/install_msw.sh
+++ b/install_msw.sh
@@ -245,9 +245,17 @@ printf '2450449 2472011'
>/opt/lmi/data/expiry
printf '5fc68a795c9c60da1b32be989efc299a expiry\n'
>/opt/lmi/data/validated.md5
printf '391daa5cbc54e118c4737446bcb84eea' >/opt/lmi/data/passkey
-# Surrogates for proprietary graphics:
-for z in company_logo.png group_quote_banner.png ;
- do cp --archive /opt/lmi/src/lmi/gwc/$z /opt/lmi/data/ ;
+# Copy proprietary graphics if available; else use generic surrogates.
+graphics_dir_0=/opt/lmi/proprietary/graphics
+graphics_dir_1=/opt/lmi/src/lmi/gwc
+for z in company_logo.png group_quote_banner.png ; do
+ if [ -f "$graphics_dir_0"/$z ]
+ then cp --archive "$graphics_dir_0"/$z /opt/lmi/data/
+ elif [ -f "$graphics_dir_1"/$z ]
+ then cp --archive "$graphics_dir_1"/$z /opt/lmi/data/
+ else
+ printf 'Graphics files not found.\n'
+ fi
done
# Configurable settings.