Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Fixed bug in proxy bash file

Michael Rademaker637f1b526cb8
diff --git a/proxy/entrypoint.sh b/proxy/entrypoint.sh
index 40fb05374..c3c005c6f 100644
--- a/proxy/entrypoint.sh
+++ b/proxy/entrypoint.sh
@@ -17,7 +17,7 @@ LE_CMD="/usr/bin/certbot certonly --config-dir ${LE_WORK_DIR} -w ${LE_WEB_ROOT}
mkdir -p $LE_CERT_ROOT
# Configure haproxy
-if [ -n $"LOCAL_CERT_FILE" ]; then
+if [ -n "${LOCAL_CERT_FILE}" ]; then
export CERT_FILE="${LOCAL_CERT_FILE}"
export LOCAL_CERT_DIR="$(dirname ${LOCAL_CERT_FILE})"
HAPROXY_CONFIG="/etc/haproxy/haproxy.cfg"