how to build config as bash script