mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 01:01:56 +00:00
deploy.sh: add UPLOAD_ONLY option
This commit is contained in:
parent
75e671a96f
commit
1671e494d3
11
deploy.sh
11
deploy.sh
|
@ -168,8 +168,13 @@ else
|
|||
info "binary $host_bin_dir/bbgo-$tag already exists, we will use the existing one"
|
||||
fi
|
||||
|
||||
# link binary and restart the systemd service
|
||||
info "linking binary and restarting..."
|
||||
ssh $host "(cd $target && ln -sf \$HOME/$host_bin_dir/bbgo-$tag bbgo && sudo systemctl restart $target.service)"
|
||||
if [[ -n "$UPLOAD_ONLY" ]] ; then
|
||||
# link binary and restart the systemd service
|
||||
info "linking binary"
|
||||
ssh $host "(cd $target && ln -sf \$HOME/$host_bin_dir/bbgo-$tag bbgo)"
|
||||
else
|
||||
info "linking binary and restarting..."
|
||||
ssh $host "(cd $target && ln -sf \$HOME/$host_bin_dir/bbgo-$tag bbgo && sudo systemctl restart $target.service)"
|
||||
fi
|
||||
|
||||
info "deployed successfully!"
|
||||
|
|
Loading…
Reference in New Issue
Block a user