Skip to content

Instantly share code, notes, and snippets.

@ghelobytes
Created December 7, 2019 14:24
Show Gist options
  • Select an option

  • Save ghelobytes/2ef203fb744584bb12ceae875f419219 to your computer and use it in GitHub Desktop.

Select an option

Save ghelobytes/2ef203fb744584bb12ceae875f419219 to your computer and use it in GitHub Desktop.
If BUILD_TARGET is not set AND not equal to local
if [ ! -z ${BUILD_TARGET} ] && [ "${BUILD_TARGET}" != "local" ]; then \
wget ${CLOUD_SQL_PROXY_URL} -O /usr/local/bin/cloud_sql_proxy; \
chmod +x /usr/local/bin/cloud_sql_proxy; \
echo "command=/usr/local/bin/cloud_sql_proxy" > /etc/supervisor/conf.d/cloud_sql_proxy.conf; \
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment