Changeset 386 in MondoRescue for branches/stable/tools/livwww


Ignore:
Timestamp:
Feb 13, 2006, 1:15:40 AM (14 years ago)
Author:
bcornec
Message:

Most of Andree's remarks are now there

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/tools/livwww

    r374 r386  
    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
     32cd $DESTDIR
    3133if [ _"$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.