Skip to content

Instantly share code, notes, and snippets.

@joeybaker
Last active February 18, 2016 18:21
Show Gist options
  • Save joeybaker/8264f1d82eea80c79131 to your computer and use it in GitHub Desktop.
Save joeybaker/8264f1d82eea80c79131 to your computer and use it in GitHub Desktop.
#!/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