Archived
1
0
Fork 0

Add install procedure into manage-server

This commit is contained in:
Mercier Pierre-Olivier 2013-11-05 17:40:52 +01:00
parent 3c0e0f09be
commit fe9cc480a1

View file

@ -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 ..