- #!/bin/bash
- ssh root@110.40.223.170 "service go-iot_service stop;/usr/bin/rm -r /opt/lc/iot_svr/iot_service"
- scp -r build/* root@110.40.223.170:/opt/lc/iot_svr/
- ssh root@110.40.223.170 "chmod +x /opt/lc/iot_svr/iot_service;service go-iot_service start;sleep 3;service go-iot_service status"
|