From 1e47a610293d0ca33bc7d3682f83fedada1f78ae Mon Sep 17 00:00:00 2001 From: arloor Date: Wed, 27 Dec 2023 17:01:01 +0800 Subject: [PATCH] Refactor code to improve performance and readability --- deploy.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 deploy.sh diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..a2fbf82 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,12 @@ +hosts="di.arloor.dev us.arloor.dev ti.arloor.dev hk.arloor.dev sg.arloor.dev gg.arloor.dev bwg.arloor.dev" +for i in $hosts;do +ssh root@$i ' + hostname + systemctl restart proxy +' +done + +ssh root@us.arloor.dev ' + hostname + systemctl restart guest +' \ No newline at end of file