Renamed torch-pub.py to torch-agent.py

dh_python
B.J. Dweck 2020-10-06 14:26:41 +02:00
parent 258b166c36
commit 12b55643e2
4 changed files with 5 additions and 5 deletions

2
example/Vagrantfile vendored
View File

@ -65,7 +65,7 @@ Vagrant.configure("2") do |config|
# documentation for more information about their specific syntax and use.
config.vm.provision "file", source: "../torch.conf", destination: "~/torch/"
config.vm.provision "file", source: "../torch-pub.py", destination: "~/torch/"
config.vm.provision "file", source: "../torch-agent.py", destination: "~/torch/"
config.vm.provision "file", source: "../torch.service", destination: "~/torch/"
config.vm.provision "file", source: "../install-ubuntu2004.sh", destination: "~/torch/"

View File

@ -16,9 +16,9 @@ cp torch.conf /etc/torch/
chown -R torch /etc/torch
mkdir -p /usr/local/lib/torch
mv torch-pub.py /usr/local/lib/torch/
chown root:root /usr/local/lib/torch/torch-pub.py
chmod 644 /usr/local/lib/torch/torch-pub.py
mv torch-agent.py /usr/local/lib/torch/
chown root:root /usr/local/lib/torch/torch-agent.py
chmod 644 /usr/local/lib/torch/torch-agent.py
mv torch.service /etc/systemd/system/
chown root:root /etc/systemd/system/torch.service

View File

@ -5,7 +5,7 @@ Requires=tor.service ssh.service
[Service]
Environment=PYTHONUNBUFFERED=1
ExecStart=/usr/bin/python3 /usr/local/lib/torch/torch-pub.py
ExecStart=/usr/bin/python3 /usr/local/lib/torch/torch-agent.py
User=torch
Group=debian-tor