mirror of
https://github.com/filecoin-project/lotus.git
synced 2025-06-03 20:39:36 +08:00
scripts: separate miner deploy from node deploy
This commit is contained in:
23
scripts/deploy-node.sh
Executable file
23
scripts/deploy-node.sh
Executable file
@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
HOST=$1
|
||||
|
||||
# upload binaries
|
||||
# TODO: destroy
|
||||
|
||||
ssh "$HOST" 'systemctl stop lotus-storage-miner'
|
||||
ssh "$HOST" 'systemctl stop lotus-daemon'
|
||||
|
||||
ssh "$HOST" 'mkdir -p .lotus .lotusstorage' &
|
||||
scp "./lotus" "$HOST:/usr/local/bin" &
|
||||
scp "./lotus-storage-miner" "$HOST:/usr/local/bin" &
|
||||
scp -C scripts/daemon.service "${HOST}:/etc/systemd/system/lotus-daemon.service" &
|
||||
scp -C scripts/sminer.service "${HOST}:/etc/systemd/system/lotus-storage-miner.service" &
|
||||
wait
|
||||
|
||||
ssh "$HOST" 'systemctl daemon-reload'
|
||||
ssh "$HOST" 'systemctl start lotus-daemon' &
|
||||
wait
|
||||
|
||||
|
||||
# setup miner actor
|
Reference in New Issue
Block a user