File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -317,10 +317,7 @@ configgen: requirements .configgen
317
317
@echo
318
318
@echo " ================== config gen ===================="
319
319
@echo
320
- echo " # Sample config which contains all the available options which the corresponding descriptions" > conf/st2.conf.sample;
321
- echo " # Note: This file is automatically generated using tools/config_gen.py - DO NOT UPDATE MANUALLY" >> conf/st2.conf.sample
322
- echo " " >> conf/st2.conf.sample
323
- . $(VIRTUALENV_DIR ) /bin/activate; python ./tools/config_gen.py >> conf/st2.conf.sample;
320
+ . $(VIRTUALENV_DIR ) /bin/activate; python ./tools/config_gen.py > conf/st2.conf.sample;
324
321
325
322
.PHONY : schemasgen
326
323
schemasgen : requirements .schemasgen
Original file line number Diff line number Diff line change 77
77
"webui" : {"webui_base_url" : "https://localhost" },
78
78
}
79
79
80
+ INIT_COMMENT = """
81
+ # Sample config which contains all the available options which the corresponding descriptions
82
+ # Note: This file is automatically generated using tools/config_gen.py - DO NOT UPDATE MANUALLY
83
+ """ .strip ()
84
+
80
85
COMMON_AUTH_OPTIONS_COMMENT = """
81
86
# Common option - options below apply in both scenarios - when auth service is running as a WSGI
82
87
# service (e.g. under Apache or Nginx) and when it's running in the standalone mode.
@@ -186,6 +191,8 @@ def _print_options(opt_group, options):
186
191
187
192
188
193
def main (args ):
194
+ print (INIT_COMMENT )
195
+ print ("" )
189
196
opt_groups = {}
190
197
for config in CONFIGS :
191
198
mod = _import_config (config )
You can’t perform that action at this time.
0 commit comments