Skip to content

Commit 1309a97

Browse files
author
Paul d'Hubert
committed
Escape supervisord envs values
1 parent 97d4a84 commit 1309a97

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/exporters.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ function supervisord_app_n(conf,outdir){
109109
var key = conf.envs[i].key;
110110
var value = conf.envs[i].value;
111111

112-
envs.push(key + "=" + value);
112+
// Some variables like 'web.1' breaks supervisor confg so we
113+
// escape quotes and wrap values in quotes.
114+
envs.push(key + "=" + '"' + value.replace(/"/, '\\"') + '"');
113115
}
114116

115117
conf.envs = envs.join(',');

0 commit comments

Comments
 (0)