termux-packages/root-packages/bettercap/fix-paths.patch

25 lines
744 B
Diff

--- ./caplets/env.go.orig 2019-10-03 21:17:37.044291360 +0200
+++ ./caplets/env.go 2019-10-03 21:18:21.894201252 +0200
@@ -19,7 +19,7 @@
if runtime.GOOS == "windows" {
return filepath.Join(os.Getenv("ALLUSERSPROFILE"), "bettercap")
}
- return "/usr/local/share/bettercap/"
+ return "@TERMUX_PREFIX@/local/share/bettercap/"
}
func getUserHomeDir() string {
diff --git a/modules/ui/ui.go b/modules/ui/ui.go
index f5d6950..4059c6c 100644
--- a/modules/ui/ui.go
+++ b/modules/ui/ui.go
@@ -36,7 +36,7 @@ func NewUIModule(s *session.Session) *UIModule {
}
mod.AddParam(session.NewStringParameter("ui.basepath",
- "/usr/local/share/bettercap/",
+ "@TERMUX_PREFIX@/local/share/bettercap/",
"",
"UI base installation path."))