Debian dependency fixed (albeit in a hacky way for now...) Finally works through tor on RPi image

master
B.J. Dweck 2020-10-09 11:59:31 +02:00
parent 72c6af328e
commit ceb80569cb
2 changed files with 6 additions and 4 deletions

2
debian/control vendored
View File

@ -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.

8
debian/postinst vendored
View File

@ -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)