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
3 changed files
with
45 additions
and
26 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
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
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,8 +1,16 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
|
||
ssh liuyifu@c2-eru-1.ricebook.link -t 'sudo yum --enablerepo=ricebook clean metadata' | ||
ssh liuyifu@c2-eru-1.ricebook.link -t 'sudo yum reinstall -y eru-core' | ||
ssh liuyifu@c2-eru-1.ricebook.link -t 'sudo systemctl daemon-reload' | ||
ssh liuyifu@c2-eru-1.ricebook.link -t 'sudo systemctl restart eru-core.service' | ||
ssh liuyifu@c2-eru-1.ricebook.link -t 'sudo git --work-tree=/opt/citadel --git-dir=/opt/citadel/.git pull' | ||
ssh liuyifu@c2-eru-1.ricebook.link -t 'sudo systemctl restart citadel' | ||
if [ $1 == "test" ]; then | ||
rsync -a /Users/timfeirg/gocode/src/gitlab.ricebook.net/platform/core sa-ricebook:~ | ||
ssh sa-ricebook -t 'sudo rm -rf /root/.go/src/gitlab.ricebook.net/platform/core' | ||
ssh sa-ricebook -t 'sudo mv ~/core /root/.go/src/gitlab.ricebook.net/platform/core' | ||
# ssh zzz1 -t 'sudo mv eru-core /usr/bin/eru-core' | ||
# ssh zzz1 -t 'sudo systemctl restart eru-core.service' | ||
else | ||
ssh liuyifu@c2-eru-1.ricebook.link -t 'sudo yum --enablerepo=ricebook clean metadata' | ||
ssh liuyifu@c2-eru-1.ricebook.link -t 'sudo yum reinstall -y eru-core' | ||
ssh liuyifu@c2-eru-1.ricebook.link -t 'sudo systemctl daemon-reload' | ||
ssh liuyifu@c2-eru-1.ricebook.link -t 'sudo systemctl restart eru-core.service' | ||
ssh liuyifu@c2-eru-1.ricebook.link -t 'sudo git --work-tree=/opt/citadel --git-dir=/opt/citadel/.git pull' | ||
ssh liuyifu@c2-eru-1.ricebook.link -t 'sudo systemctl restart citadel' | ||
fi |