Changeset 387 for trunk/tools


Ignore:
Timestamp:
Feb 13, 2006, 1:21:51 AM (13 years ago)
Author:
bcornec
Message:

merge -r372:374 $SVN_M/branches/stable
merge -r384:386 $SVN_M/branches/stable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/livwww

    r372 r387  
    1212DESTUSER=apache
    1313MONDODIR=/mondo/www/html/mondo
     14TESTDIR=/mondo/www/html/test
    1415
    1516
     
    2930find $DESTDIR -type d | xargs chmod 755
    3031find $DESTDIR -type f | xargs chmod 644
    31 if [ _"$1" == _"" ); then
     32cd $DESTDIR
     33if [ _"$1" == _"" ]; then
    3234        exit 0
     35else
     36    if [ _"$1" == _"test" ]; then
     37        DESTDIR=$TESTDIR
     38    else
     39        DESTDIR=$MONDODIR
     40    fi
    3341fi
    34 cd $DESTDIR
    3542tar cfj /tmp/mondo-www.tz2 .
    36 ssh ${DESTUSER}@${DESTMACH} "rm -rf ${MONDODIR} ; mkdir ${MONDODIR}"
     43ssh ${DESTUSER}@${DESTMACH} "rm -rf ${DESTDIR} ; mkdir ${DESTDIR}"
    3744scp /tmp/mondo-www.tz2 ${DESTUSER}@${DESTMACH}:/tmp
    38 ssh ${DESTUSER}@${DESTMACH} "cd ${MONDODIR} ; tar xfj /tmp/mondo-www.tz2"
     45ssh ${DESTUSER}@${DESTMACH} "cd ${DESTDIR} ; tar xfj /tmp/mondo-www.tz2"
Note: See TracChangeset for help on using the changeset viewer.