2019-10-03 22:15:37 +02:00
|
|
|
--- ./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/"
|
|
|
|
}
|
2019-09-12 07:06:16 +02:00
|
|
|
|
2019-10-03 22:15:37 +02:00
|
|
|
func getUserHomeDir() string {
|
2019-09-12 07:06:16 +02:00
|
|
|
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."))
|
|
|
|
|