Skip to content

Instantly share code, notes, and snippets.

@ubermuda
Created April 1, 2014 08:21
Show Gist options
  • Save ubermuda/9910035 to your computer and use it in GitHub Desktop.
Save ubermuda/9910035 to your computer and use it in GitHub Desktop.
for env in $(printenv); do
IFS== read KEY VALUE <<< "$env"
sed "s,\${${KEY}},${VALUE},g" -i /etc/nginx/sites-enabled/default
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment