Created
February 19, 2010 00:07
-
-
Save duncanbeevers/308256 to your computer and use it in GitHub Desktop.
Mount a secure DMG, execute the deploy_credentials.sh script within it to set up deploy environment, unmount dmg
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
# Read Secure Volume credentials for deploy | |
export VAULT_DMG="~/Sensitive.dmg" | |
alias mount_sp="hdid $VAULT_DMG > /dev/null" | |
alias sp="SECURE_MOUNT_INFO=\`hdid $VAULT_DMG\`; SECURE_MOUNT_DEVICE=\`echo -e \$SECURE_MOUNT_INFO | cut -d ' ' -f1\`; SECURE_MOUNT_PATH=\`echo -e \$SECURE_MOUNT_INFO | cut -d ' ' -f2\`; . \$SECURE_MOUNT_PATH/deploy_credentials.sh; hdiutil eject \$SECURE_MOUNT_DEVICE > /dev/null; unset SECURE_MOUNT_INFO SECURE_MOUNT_PATH SECURE_MOUNT_DEVICE" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment