From 44da3fd95fbbfbc3f2d3e048fd0e7ec52a6490be Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Fri, 29 Oct 2021 16:06:18 -0700 Subject: [PATCH] change -exportTofuBundle to -exportServerBundle --- README.md | 2 +- app/main.go | 6 +++--- docker/Dockerfile | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 62f0f2c..ff4d5fe 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ The app takes the following arguments - -debug: enabled debug logging -- -exportTofuBundle: Export the tofubundle to a file called tofubundle +- -exportServerBundle: Export the server bundle to a file called serverbundle The app takes the following environment variables diff --git a/app/main.go b/app/main.go index 45c814e..e24982c 100644 --- a/app/main.go +++ b/app/main.go @@ -19,7 +19,7 @@ import ( func main() { flagDebug := flag.Bool("debug", false, "Enable debug logging") - flagExportTofu := flag.Bool("exportTofuBundle", false, "Export the tofubundle to a file called tofubundle") + flagExportServer := flag.Bool("exportServerBundle", false, "Export the server bundle to a file called serverbundle") flag.Parse() log.AddEverythingFromPattern("server/app/main") @@ -85,9 +85,9 @@ func main() { log.Infof("Server bundle (import into client to use server): %s\n", log.Magenta(server.ServerBundle())) - if *flagExportTofu { + if *flagExportServer { // Todo: change all to server export - ioutil.WriteFile(path.Join(serverConfig.ConfigDir, "tofubundle"), []byte(server.TofuBundle()), 0600) + ioutil.WriteFile(path.Join(serverConfig.ConfigDir, "serverbundle"), []byte(server.TofuBundle()), 0600) } // Graceful Shutdown diff --git a/docker/Dockerfile b/docker/Dockerfile index 6fb3a9e..52268c5 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -64,5 +64,5 @@ COPY ./docker/docker-entrypoint /usr/local/bin/ VOLUME /etc/tor /var/lib/tor /var/lib/cwtch ENTRYPOINT ["docker-entrypoint"] -CMD ["/usr/local/bin/cwtch","--exportTofuBundle"] +CMD ["/usr/local/bin/cwtch","--exportServerBundle"]