Last active
February 18, 2016 18:21
-
-
Save joeybaker/8264f1d82eea80c79131 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
#!/bin/bash | |
# strict mode http://redsymbol.net/articles/unofficial-bash-strict-mode/ | |
set -euo pipefail | |
IFS=$'\n\t' | |
function f () { | |
# set these to your server crt and key files | |
local crt=server.crt | |
local key=server.key | |
for app in $(heroku apps | tail -n +2 | grep -v '\-pr\-' | awk '{print $1}'); do [10:18:23 AM] | |
heroku certs:update "$cert" "$key" --app="$app" --confirm="$app" | |
done | |
} | |
f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment