Created
October 29, 2015 22:08
-
-
Save qdw/49d9297a34165e747f2a to your computer and use it in GitHub Desktop.
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
ED=/etc/wal-e.d/env | |
ORIG_UMASK=$(umask) | |
umask u=rwx,g=rx,o= | |
sudo mkdir -p "$ED" | |
chmod 640 AWS_SECRET_ACCESS_KEY AWS_ACCESS_KEY_ID | |
sudo rsync -va AWS_SECRET_ACCESS_KEY AWS_ACCESS_KEY_ID "$ED/" || exit $? | |
sudo chown -R root:postgres /etc/wal-e.d || exit $? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment