zrok/bin/update_zrok.sh

22 lines
1.1 KiB
Bash
Raw Normal View History

#!/bin/bash
2022-10-25 17:51:16 +02:00
# ctrl-01.zrok.io
2022-11-29 19:03:33 +01:00
ssh -i ~/.ssh/nf-zrok-ubuntu ctrl-01.dev.zrok.io sudo systemctl stop zrok-ctrl
scp -i ~/.ssh/nf-zrok-ubuntu ~/local/zrok/bin/zrok ctrl-01.dev.zrok.io:local/zrok/bin/zrok
ssh -i ~/.ssh/nf-zrok-ubuntu ctrl-01.dev.zrok.io sudo systemctl start zrok-ctrl
2022-10-25 17:51:16 +02:00
# ctrl-02.zrok.io
2022-11-29 19:03:33 +01:00
ssh -i ~/.ssh/nf-zrok-ubuntu ctrl-02.dev.zrok.io sudo systemctl stop zrok-ctrl
scp -i ~/.ssh/nf-zrok-ubuntu ~/local/zrok/bin/zrok ctrl-02.dev.zrok.io:local/zrok/bin/zrok
ssh -i ~/.ssh/nf-zrok-ubuntu ctrl-02.dev.zrok.io sudo systemctl start zrok-ctrl
2022-10-25 17:51:16 +02:00
# in-01.zrok.io
2022-11-29 19:03:33 +01:00
ssh -i ~/.ssh/nf-zrok-ubuntu in-01.dev.zrok.io sudo systemctl stop zrok-http-frontend
scp -i ~/.ssh/nf-zrok-ubuntu ~/local/zrok/bin/zrok in-01.dev.zrok.io:local/zrok/bin/zrok
ssh -i ~/.ssh/nf-zrok-ubuntu in-01.dev.zrok.io sudo systemctl start zrok-http-frontend
2022-10-25 17:51:16 +02:00
# in-02.zrok.io
2022-11-29 19:03:33 +01:00
ssh -i ~/.ssh/nf-zrok-ubuntu in-02.dev.zrok.io sudo systemctl stop zrok-http-frontend
scp -i ~/.ssh/nf-zrok-ubuntu ~/local/zrok/bin/zrok in-02.dev.zrok.io:local/zrok/bin/zrok
ssh -i ~/.ssh/nf-zrok-ubuntu in-02.dev.zrok.io sudo systemctl start zrok-http-frontend