Skip to content

Instantly share code, notes, and snippets.

@dbrgn
Created February 25, 2014 14:53
Show Gist options
  • Save dbrgn/9210334 to your computer and use it in GitHub Desktop.
Save dbrgn/9210334 to your computer and use it in GitHub Desktop.
Parse env vars from supervisor config file
cat /etc/supervisor/conf.d/radar.conf | grep environment | uniq | sed 's/environment=/export /' | sed 's/;/\nexport /g' | sed 's/%%/%/g' | sed 's/\$/\\\$/g' | head -n -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment