update deploy script
@@ -5,12 +5,7 @@ set -e
deploy_mode=${1-test}
if [ $deploy_mode == "test" ]
then
- ssh c1-eru-1.ricebook.link -t 'sudo yum --enablerepo=ricebook clean metadata'
- ssh c1-eru-1.ricebook.link -t 'sudo yum makecache'
- ssh c1-eru-1.ricebook.link -t 'sudo yum remove -y eru-core'
- ssh c1-eru-1.ricebook.link -t 'sudo yum install -y eru-core'
- ssh c1-eru-1.ricebook.link -t 'sudo systemctl daemon-reload'
- ssh c1-eru-1.ricebook.link -t 'sudo systemctl restart eru-core.service'
+ echo "citadel do not have test envrionment for now"
elif [ $deploy_mode == "prod" ]
then
ssh c2-eru-1.ricebook.link -t 'sudo yum --enablerepo=ricebook clean metadata'
@@ -19,6 +14,13 @@ then
ssh c2-eru-1.ricebook.link -t 'sudo yum install -y eru-core'
ssh c2-eru-1.ricebook.link -t 'sudo systemctl daemon-reload'
ssh c2-eru-1.ricebook.link -t 'sudo systemctl restart eru-core.service'
+
+ ssh c1-eru-1.ricebook.link -t 'sudo yum --enablerepo=ricebook clean metadata'
+ ssh c1-eru-1.ricebook.link -t 'sudo yum makecache'
+ ssh c1-eru-1.ricebook.link -t 'sudo yum remove -y eru-core'
+ ssh c1-eru-1.ricebook.link -t 'sudo yum install -y eru-core'
+ ssh c1-eru-1.ricebook.link -t 'sudo systemctl daemon-reload'
+ ssh c1-eru-1.ricebook.link -t 'sudo systemctl restart eru-core.service'
else
exit 127
fi
