mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
deploy.sh: add sudo command
This commit is contained in:
parent
af837ea237
commit
b0314ef74d
|
@ -113,7 +113,7 @@ END
|
|||
scp ".systemd.$target.service" "$host:$host_systemd_service_dir/$target.service"
|
||||
|
||||
info "reloading systemd daemon..."
|
||||
remote_run "systemctl daemon-reload && systemctl enable $target"
|
||||
remote_run "sudo systemctl daemon-reload && systemctl enable $target"
|
||||
fi
|
||||
|
||||
info "building binary: $bin_type-$host_os-$host_arch..."
|
||||
|
@ -131,6 +131,6 @@ 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 && systemctl restart $target.service)"
|
||||
ssh $host "(cd $target && ln -sf \$HOME/$host_bin_dir/bbgo-$tag bbgo && sudo systemctl restart $target.service)"
|
||||
|
||||
info "deployed successfully!"
|
||||
|
|
Loading…
Reference in New Issue
Block a user