mirror of
https://github.com/c9s/bbgo.git
synced 2024-09-20 08:11:08 +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"
|
info "binary $host_bin_dir/bbgo-$tag already exists, we will use the existing one"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# link binary and restart the systemd service
|
if [[ -n "$UPLOAD_ONLY" ]] ; then
|
||||||
info "linking binary and restarting..."
|
# link binary and restart the systemd service
|
||||||
ssh $host "(cd $target && ln -sf \$HOME/$host_bin_dir/bbgo-$tag bbgo && sudo systemctl restart $target.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!"
|
info "deployed successfully!"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user