From 12b55643e2dddc56f020d6e706a7792db754ff82 Mon Sep 17 00:00:00 2001 From: BJ Dweck Date: Tue, 6 Oct 2020 14:26:41 +0200 Subject: [PATCH] Renamed torch-pub.py to torch-agent.py --- example/Vagrantfile | 2 +- install-ubuntu2004.sh | 6 +++--- torch-pub.py => torch-agent.py | 0 torch.service | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) rename torch-pub.py => torch-agent.py (100%) diff --git a/example/Vagrantfile b/example/Vagrantfile index 7ded074..b20553b 100644 --- a/example/Vagrantfile +++ b/example/Vagrantfile @@ -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/" diff --git a/install-ubuntu2004.sh b/install-ubuntu2004.sh index 8d554d5..91cb9e8 100755 --- a/install-ubuntu2004.sh +++ b/install-ubuntu2004.sh @@ -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 diff --git a/torch-pub.py b/torch-agent.py similarity index 100% rename from torch-pub.py rename to torch-agent.py diff --git a/torch.service b/torch.service index fac61bc..d35b37f 100644 --- a/torch.service +++ b/torch.service @@ -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