From 3b2061bb5c25421262de269e8924235f39dae2ab Mon Sep 17 00:00:00 2001 From: Stephan Oeste Date: Sat, 27 Aug 2022 15:52:42 +0200 Subject: [PATCH] Only source mysql_credentials if present in prod install --- production/mempool-build-all | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/production/mempool-build-all b/production/mempool-build-all index c0e9a2c2a..7f851f813 100755 --- a/production/mempool-build-all +++ b/production/mempool-build-all @@ -12,7 +12,10 @@ ELEMENTS_RPC_USER=$(grep '^rpcuser' /elements/elements.conf | cut -d '=' -f2) ELEMENTS_RPC_PASS=$(grep '^rpcpassword' /elements/elements.conf | cut -d '=' -f2) # get mysql credentials -. /mempool/mysql_credentials +MYSQL_CRED_FILE=${HOME}/mempool/mysql_credentials +if [ -f "${MYSQL_CRED_FILE}" ];then + . ${MYSQL_CRED_FILE} +} if [ -f "${LOCKFILE}" ];then echo "upgrade already running? check lockfile ${LOCKFILE}"