Skip to content

Commit

Permalink
Add better string escaping to upstart template just in case somebody …
Browse files Browse the repository at this point in the history
…has an exclamation point in a Django key or something.
  • Loading branch information
efagin committed Apr 3, 2015
1 parent 76ab3fb commit fbaa120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upstart/process.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ stop on stopping <%= app %>-<%= name %>
respawn
respawn limit 50 5

exec su - <%= user %> -c 'cd <%= engine.root %>; export PORT=<%= port %>;<% engine.env.each_pair do |var,env| %> export <%= var.upcase %>="<%= env %>"; <% end %> export TMPDIR=$TMPDIR/<%= app %>/<%= name %>/<%= num %>; rm -rf $TMPDIR; mkdir -p $TMPDIR; source $VENV/bin/activate; <%= process.command %> >> <%= log %>/<%=name%>-<%=num%>.log 2>&1'
exec su - <%= user %> -c 'cd <%= engine.root %>; export PORT=<%= port %>;<% engine.env.each_pair do |var,env| %> export <%= var.upcase %>='\''<%= env %>'\''; <% end %> export TMPDIR=$TMPDIR/<%= app %>/<%= name %>/<%= num %>; rm -rf $TMPDIR; mkdir -p $TMPDIR; source $VENV/bin/activate; <%= process.command %> >> <%= log %>/<%=name%>-<%=num%>.log 2>&1'

0 comments on commit fbaa120

Please sign in to comment.