Browse Source

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

master
B.J. Dweck 2 years ago
parent
commit
ceb80569cb
2 changed files with 6 additions and 4 deletions
  1. +1
    -1
      debian/control
  2. +5
    -3
      debian/postinst

+ 1
- 1
debian/control 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.

+ 5
- 3
debian/postinst 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)

Loading…
Cancel
Save