Created
February 25, 2014 14:53
-
-
Save dbrgn/9210334 to your computer and use it in GitHub Desktop.
Parse env vars from supervisor config file
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
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