fix: switched caplets folder to /usr/local/share/bettercap to keep cross OS compatibility (fixes bettercap/caplets/issues#25)

This commit is contained in:
evilsocket 2018-08-30 14:10:43 +03:00
parent 6df190a715
commit 3789b21ba1
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
2 changed files with 2 additions and 2 deletions

View file

@ -20,7 +20,7 @@ clean:
@rm -rf build @rm -rf build
install: install:
@mkdir -p /usr/share/bettercap/caplets @mkdir -p /usr/local/share/bettercap/caplets
@cp bettercap /usr/local/bin/ @cp bettercap /usr/local/bin/
@cp bettercap.service /etc/systemd/system/ @cp bettercap.service /etc/systemd/system/
@systemctl daemon-reload @systemctl daemon-reload

View file

@ -23,7 +23,7 @@ type Caplet struct {
var ( var (
CapletLoadPaths = []string{ CapletLoadPaths = []string{
"./caplets/", "./caplets/",
"/usr/share/bettercap/caplets/", "/usr/local/share/bettercap/caplets/",
} }
cache = make(map[string]*Caplet) cache = make(map[string]*Caplet)