Created
July 10, 2017 16:09
-
-
Save floehopper/52ba1d5315452a1b8740853de6de9278 to your computer and use it in GitHub Desktop.
Fixes for govuk-puppet/development-vm/replication/sync-mysql.sh on OSX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install gnu-sed --with-default-names |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/development-vm/replication/sync-mysql.sh b/development-vm/replication/sync-mysql.sh | |
index 5f9589b..581eaac 100755 | |
--- a/development-vm/replication/sync-mysql.sh | |
+++ b/development-vm/replication/sync-mysql.sh | |
@@ -82,7 +82,7 @@ for file in $(find $MYSQL_DIR -name 'daily*production*.sql.bz2'); do | |
fi | |
done | |
- TEMP_SED_SCRIPT=$(mktemp) | |
+ TEMP_SED_SCRIPT=$(mktemp -t foo) | |
if $RENAME_DATABASES; then | |
awk '{print "/^CREATE DATABASE/,+10",$0}' $(dirname $0)/mappings/names.sed > ${TEMP_SED_SCRIPT} | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment