Skip to content
This repository has been archived by the owner on Feb 25, 2019. It is now read-only.

Commit

Permalink
[REV] fmt grclis
Browse files Browse the repository at this point in the history
  • Loading branch information
ysicing committed Oct 15, 2018
1 parent fd28c0f commit 34e66c4
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions install/salt/install/files/init/bin/grclis
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

#ALL_SERVICES="rbd-db rbd-hub rbd-lb rbd-chaos rbd-repo rbd-worker kube-scheduler rbd-entrance rbd-api rbd-dns rbd-eventlog calico rbd-webcli rbd-mq rbd-monitor kube-controller-manager rbd-app-ui kube-apiserver etcd"
version=$(yq r /srv/pillar/rainbond.sls rbd-version)

func(){
local ALL_SERVICES="rbd-db rbd-hub rbd-lb rbd-chaos rbd-repo rbd-worker kube-scheduler rbd-entrance rbd-api rbd-dns rbd-eventlog calico rbd-webcli rbd-mq rbd-monitor kube-controller-manager rbd-app-ui kube-apiserver etcd"
Expand All @@ -25,9 +26,9 @@ core(){
do
if [ "$img" == "$update_img" ];then
echo "update ${update_img}"
docker pull rainbond/${update_img}:3.7.1
docker tag rainbond/${update_img}:3.7.1 goodrain.me/${update_img}:3.7.1
docker push goodrain.me/${update_img}:3.7.1
docker pull rainbond/${update_img}:${version}
docker tag rainbond/${update_img}:${version} goodrain.me/${update_img}:${version}
docker push goodrain.me/${update_img}:${version}
echo "restart ${update_img}"
systemctl restart ${update_img}
time=1
Expand All @@ -44,9 +45,9 @@ update_all(){
for update_img in ${all[@]}
do
echo "update ${update_img}"
docker pull rainbond/${update_img}:3.7.1
docker tag rainbond/${update_img}:3.7.1 goodrain.me/${update_img}:3.7.1
docker push goodrain.me/${update_img}:3.7.1
docker pull rainbond/${update_img}:${version}
docker tag rainbond/${update_img}:${version} goodrain.me/${update_img}:${version}
docker push goodrain.me/${update_img}:${version}
echo "restart ${update_img}"
systemctl restart ${update_img}
done
Expand Down Expand Up @@ -102,5 +103,5 @@ elif [ "$1" == "update" ];then
core update $2
fi
else
echo "grclis <start|stop>"
echo "grclis <start|stop|update all>"
fi

0 comments on commit 34e66c4

Please sign in to comment.