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