InstallNinja.sh 310 B

12345678910111213
  1. #!/bin/bash
  2. # copy file from SCP server to local system
  3. sudo scp -r anonymous@ptiwa001:ninja-agent.deb ~/
  4. # install package using dpkg
  5. sudo dpkg -i ninja-agent.deb
  6. # start the service
  7. sudo systemctl start ninjarmm-agent.service
  8. # check the status of the service
  9. sudo systemctl status ninjarmm-agent.service