Working Debian package!
This commit is contained in:
Vendored
+9
-12
@@ -64,24 +64,21 @@ Vagrant.configure("2") do |config|
|
||||
# Ansible, Chef, Docker, Puppet and Salt are also available. Please see the
|
||||
# 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-agent.py", destination: "~/torch/"
|
||||
config.vm.provision "file", source: "../torch.service", destination: "~/torch/"
|
||||
config.vm.provision "file", source: "../install-ubuntu2004.sh", destination: "~/torch/"
|
||||
|
||||
config.vm.provision "file", source: "torch-agent_0.0.1-1_all.deb", destination: "~/"
|
||||
config.vm.provision "file", source: "agent-config", destination: "~/torch-conf"
|
||||
|
||||
config.vm.provision "shell", inline: <<-SHELL
|
||||
|
||||
sudo -- sh -c "echo '10.0.2.2 mqtt.example.com' >> /etc/hosts"
|
||||
|
||||
cd torch
|
||||
sudo ./install-ubuntu2004.sh
|
||||
|
||||
sudo cp -f ../torch-conf/* /etc/torch/
|
||||
sudo -- sh -c "echo '10.0.2.2 mqtt.example.com' >> /etc/hosts"
|
||||
|
||||
sudo apt update
|
||||
sudo apt install -y ./torch-agent_0.0.1-1_all.deb
|
||||
|
||||
sudo cp -f torch-conf/* /etc/torch/
|
||||
sudo chown -R torch /etc/torch
|
||||
|
||||
sudo systemctl restart torch
|
||||
sudo systemctl enable torch-agent
|
||||
sudo systemctl start torch-agent
|
||||
|
||||
SHELL
|
||||
end
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user