Merge pull request #230 from caquino/caquino/manual-auto-fix

fix path and ui install
This commit is contained in:
evilsocket 2019-10-09 11:48:41 +02:00 committed by GitHub
commit 51ac81a557
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,6 +28,7 @@
packages:
bettercap:
url: "https://github.com/bettercap/bettercap/releases/download/v2.25/bettercap_linux_armv6l_2.25.zip"
ui: "https://github.com/bettercap/ui/releases/download/v1.3.0/ui.zip"
apt:
remove:
- rasberrypi-net-mods
@ -182,8 +183,12 @@
chdir: /tmp/caplets
target: install
- name: install bettercap http ui
command: "/usr/bin/bettercap -eval 'caplets.update; ui.update; q'"
- name: download and install bettercap ui
unarchive:
src: "{{ packages.bettercap.ui }}"
dest: /usr/local/share/bettercap/
remote_src: yes
mode: 0755
- name: create cpuusage script
copy:
@ -402,7 +407,9 @@
[Service]
Type=simple
PermissionsStartOnly=true
ExecStart=/usr/local/bin/bettercap-launcher
ExecStartPre=/usr/bin/monstart
ExecStart=/usr/bin/bettercap-launcher
ExecStopPost=/usr/bin/monstop
Restart=always
RestartSec=30