Add install procedure into manage-server
This commit is contained in:
parent
3c0e0f09be
commit
fe9cc480a1
1 changed files with 7 additions and 2 deletions
|
@ -6,7 +6,7 @@ WKS_LIST="apl"
|
||||||
SRV_LIST="moore noyce hamano cpp otto"
|
SRV_LIST="moore noyce hamano cpp otto"
|
||||||
SCP_LIST="ksh knuth"
|
SCP_LIST="ksh knuth"
|
||||||
|
|
||||||
KNOWN_ACTIONS="start stop restart update log viewlog view_log"
|
KNOWN_ACTIONS="start stop restart install update log viewlog view_log"
|
||||||
|
|
||||||
LOG=`mktemp`
|
LOG=`mktemp`
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ do
|
||||||
for DEST in $DESTS
|
for DEST in $DESTS
|
||||||
do
|
do
|
||||||
echo -e "\e[1;34m>>>\e[0m \e[33m$ACTION\e[0m on \e[1m$DEST\e[0m"
|
echo -e "\e[1;34m>>>\e[0m \e[33m$ACTION\e[0m on \e[1m$DEST\e[0m"
|
||||||
if [ "$ACTION" == "update" ]
|
if [ "$ACTION" == "install" ] || [ "$ACTION" == "update" ]
|
||||||
then
|
then
|
||||||
SCP=0
|
SCP=0
|
||||||
for D in $SCP_LIST
|
for D in $SCP_LIST
|
||||||
|
@ -94,6 +94,11 @@ do
|
||||||
|
|
||||||
if [ $SCP -eq 0 ]
|
if [ $SCP -eq 0 ]
|
||||||
then
|
then
|
||||||
|
if [ "$ACTION" == "install" ] &&
|
||||||
|
! ssh root@$DEST "mkdir -p /home/intradmin/ && git clone '$(echo `git remote -v` | cut -d " " -f 2)' /home/intradmin/liblerdorf && ln -s /home/intradmin/liblerdorf ~/liblerdorf"
|
||||||
|
then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
ssh root@$DEST "make -C liblerdorf update upgrade"
|
ssh root@$DEST "make -C liblerdorf update upgrade"
|
||||||
else
|
else
|
||||||
cd ..
|
cd ..
|
||||||
|
|
Reference in a new issue