Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Remove hardcoded binary name from unstuff routine

Kailash Nadh65317503cf3a
diff --git a/main.go b/main.go
index 58fa6e89..a8ce9d55 100644
--- a/main.go
+++ b/main.go
@@ -89,7 +89,7 @@ func initConfig(ko *koanf.Koanf) error {
// initFileSystem initializes the stuffbin FileSystem to provide
// access to bunded static assets to the app.
func initFileSystem(binPath string) (stuffbin.FileSystem, error) {
- fs, err := stuffbin.UnStuff("./listmonk")
+ fs, err := stuffbin.UnStuff(os.Args[0])
if err == nil {
return fs, nil
}