- #!/bin/bash
- # copy file from SCP server to local system
- sudo scp -r anonymous@ptiwa001:ninja-agent.deb ~/
- # install package using dpkg
- sudo dpkg -i ninja-agent.deb
- # start the service
- sudo systemctl start ninjarmm-agent.service
- # check the status of the service
- sudo systemctl status ninjarmm-agent.service
|