Skip to content

Commit 8bd0b66

Browse files
Fix discourse conf file creation (#980)
1 parent 7889fe3 commit 8bd0b66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/web.template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ run:
4545
conf=/var/www/discourse/config/discourse.conf
4646
4747
# find DISCOURSE_ env vars, strip the leader, lowercase the key
48-
/usr/local/bin/ruby -e 'ENV.each{|k,v| puts "#{$1.downcase} = '\''#{v}'\''" if k =~ /^DISCOURSE_(.*)/}' > $conf
48+
/usr/local/bin/ruby -e 'ENV.each{|k,v| puts "#{$1.downcase} = '\''#{v}'\''" if k =~ /^DISCOURSE_(.*)/}' | install -m 600 -o discourse /dev/stdin ${conf}
4949
5050
- file:
5151
path: /etc/service/unicorn/run

0 commit comments

Comments
 (0)