From ceb80569cb65073f944c4b47652a2d7c09f97915 Mon Sep 17 00:00:00 2001 From: Benjamin Dweck Date: Fri, 9 Oct 2020 11:59:31 +0200 Subject: [PATCH] Debian dependency fixed (albeit in a hacky way for now...) Finally works through tor on RPi image --- debian/control | 2 +- debian/postinst | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/debian/control b/debian/control index adadf5d..441a78c 100644 --- a/debian/control +++ b/debian/control @@ -12,7 +12,7 @@ Vcs-Git: https://git.rudefox.io/bj/torch-agent.git Package: torch-agent Architecture: all Multi-Arch: foreign -Depends: ssh, tor, python3-pip, python3-paho-mqtt (>=1.5.0), ${misc:Depends}, ${python3:Depends} +Depends: ssh, tor, python3-pip, ${misc:Depends}, ${python3:Depends} Description: TORch is a solution for creating an SSH-via-Tor backdoor on a remote device as a means of fallback remote management and initial headless device configuration. diff --git a/debian/postinst b/debian/postinst index 9647a8f..8b4d601 100644 --- a/debian/postinst +++ b/debian/postinst @@ -53,10 +53,12 @@ case "$1" in useradd -r -g $GROUP $USER fi - chown $USER /etc/torch - chown $USER /etc/torch/torch.conf + sudo -H pip3 install 'paho-mqtt>=1.5.1' - configure_tor_controller + chown $USER /etc/torch + chown $USER /etc/torch/torch.conf + + configure_tor_controller ;; abort-upgrade|abort-remove|abort-deconfigure)