High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.
JavaScript campaigncampaign-managementemail-marketingemail-subscriptionlistmonkmailing-listnewsletternewsletter-managementnewsletter-softwareself-hostedsms-gatewaysmtptransactional-emails
Fix incorrect `--new-config` file write error message. Closes #2818.
Kailash Nadhe8fb9d5913b7
diff --git a/cmd/init.go b/cmd/init.goindex 613164ba..c856494a 100644--- a/cmd/init.go+++ b/cmd/init.go@@ -166,7 +166,7 @@ func initFlags(ko *koanf.Koanf) {f.Bool("idempotent", false, "make --install run only if the database isn't already setup")f.Bool("upgrade", false, "upgrade database to the current version")f.Bool("version", false, "show current version of the build")- f.Bool("new-config", false, "generate sample config file")+ f.Bool("new-config", false, "generate sample config file (at path given in --config)")f.String("static-dir", "", "(optional) path to directory with static files")f.String("i18n-dir", "", "(optional) path to directory with i18n language files")f.Bool("yes", false, "assume 'yes' to prompts during --install/upgrade")diff --git a/cmd/install.go b/cmd/install.goindex ebe6da67..f54a303a 100644--- a/cmd/install.go+++ b/cmd/install.go@@ -286,7 +286,7 @@ func recordMigrationVersion(ver string, db *sqlx.DB) error {func newConfigFile(path string) error {if _, err := os.Stat(path); !os.IsNotExist(err) {- return fmt.Errorf("%s exists. Remove it to generate a new one", path)+ return fmt.Errorf("error creating %s: %v", path, err)}// Initialize the static file system into which all