#!/bin/bash DIR="$(dirname "$(readlink -f "$BASH_SOURCE")")" TMPDIR="" TMPDIR=$(mktemp -d -t repipe.XXXXXX) trap "rm -rf ${TMPDIR}" INT TERM QUIT EXIT sed "s/^#@ mongodb_migrate_image_digest = \".*\"/#@ mongodb_migrate_image_digest = \"${1}\"/" ${DIR}/../docker-compose.tmpl.yml > ${TMPDIR}/docker-compose.tmpl.yml mv ${TMPDIR}/docker-compose.tmpl.yml ${DIR}/../docker-compose.tmpl.yml