-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
18 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
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 | ||
' | ||
#! /bin/bash | ||
hosts="hk.arloor.dev sg.arloor.dev di.arloor.dev us.arloor.dev gg.arloor.dev" | ||
# echo "" > ~/.ssh/known_hosts | ||
# for i in ${hosts}; do | ||
# ssh-keyscan -H ${i} >> ~/.ssh/known_hosts | ||
# done | ||
for i in ${hosts}; do | ||
ssh -o StrictHostKeyChecking=no root@${i} ' | ||
hostname; | ||
systemctl restart proxygo; | ||
podman image prune -f 2>/dev/null | ||
podman images --digests |grep arloor/go_web_server|awk "{print \$4\" \"\$3}"; | ||
' | ||
done | ||
|
||
ssh [email protected] ' | ||
hostname | ||
systemctl restart guest | ||
' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters