1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2024-12-14 12:37:31 +00:00

renamed template files

This commit is contained in:
postmannen 2021-12-08 07:09:12 +01:00
parent dddbd46110
commit 823561f122
3 changed files with 2 additions and 2 deletions

View file

@ -67,7 +67,7 @@ func writekey(fileName string, b []byte) error {
// generateEnv will generate the env.env file.
func generateEnv(fileDir string, templateDir string, brokerAddress string) error {
templateFile := path.Join(templateDir, "template_env.env")
templateFile := path.Join(templateDir, "env.env.tpl")
tpl, err := template.ParseFiles(templateFile)
if err != nil {
return fmt.Errorf("error: parsing template file, you might need to set the -templateDir path: %v, err: %v", templateFile, err)
@ -175,7 +175,7 @@ func main() {
}
{
template := path.Join(*templateDir, "template_docker-compose.yml")
template := path.Join(*templateDir, "docker-compose.yml.tpl")
err := generateDockerCompose(*fileDir, template, *imageAndVersion, *exposedProfilingPort, *exposedPrometheusPort, *exposedDataFolderPort, *exposedTcpListenerPort, *exposedHttpListenerPort, *nkeySeedFile, *socketFolder)
if err != nil {
log.Printf("%v\n", err)