You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

17 lines
513 B

#!/bin/bash
# ./deploy.sh root@192.168.8.10
if [ $# -ne 1 ]; then
echo "Usage: $0 user@host"
exit 1
fi
server=$1
ssh $server 'mkdir -p /iflytopd/iflytoptdcan/'
ssh $server 'systemctl stop iflytoptdcan'
scp ./build/app/iflytoptdcan $server:/iflytopd/iflytoptdcan/
# scp ./resources/iflytoptdcan.service $server:/lib/systemd/system/
# scp ./resources/config.ini $server:/iflytopd/iflytoptdcan/
scp ./resources/spd_logger_cfg.json $server:/iflytopd/iflytoptdcan/
ssh $server 'systemctl start iflytoptdcan'