Merge pull request #2406 from Emzy/ops/fix-upgrade-script
Only source mysql_credentials if present in prod install
This commit is contained in:
		
						commit
						38fa8f58b7
					
				| @ -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}" | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user