From 797864e6c209c49c9a61cf6ad9a48bb8b45b7a49 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 25 Aug 2014 14:36:40 +1000 Subject: [PATCH] stop contorting with buggy awk code --- templates/web.template.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/web.template.yml b/templates/web.template.yml index b177e91..db753b8 100644 --- a/templates/web.template.yml +++ b/templates/web.template.yml @@ -30,7 +30,7 @@ run: conf=/var/www/discourse/config/discourse.conf # find DISCOURSE_ env vars, strip the leader, lowercase the key - env | /usr/bin/awk -F= -vOFS== '$1 ~ /^DISCOURSE_/ {print substr(tolower($1),11),$2}' > $conf + /usr/local/bin/ruby -e 'ENV.each{|k,v| puts "#{$1.downcase} = #{v}" if k =~ /^DISCOURSE_(.*)/}' > $conf - file: path: /etc/service/unicorn/run -- 2.25.1