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"
|
||||
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`
|
||||
|
||||
|
@ -80,7 +80,7 @@ do
|
|||
for DEST in $DESTS
|
||||
do
|
||||
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
|
||||
SCP=0
|
||||
for D in $SCP_LIST
|
||||
|
@ -94,6 +94,11 @@ do
|
|||
|
||||
if [ $SCP -eq 0 ]
|
||||
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"
|
||||
else
|
||||
cd ..
|
||||
|
|
Reference in a new issue