Changeset 400 in MondoRescue
- Timestamp:
- Feb 17, 2006, 2:26:49 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/tools/livwww
r399 r400 8 8 # Please replace with your destination 9 9 # 10 DESTDIR=/var/www/html/mondo10 LOCALDIR=/var/www/html/mondo 11 11 DESTUSER=apache 12 12 MONDODIR=/mondo/www/html/mondo 13 13 TESTDIR=/mondo/www/html/test 14 14 15 /sbin/ifconfig | grep -q 10.3 .32>&1 > /dev/null15 /sbin/ifconfig | grep -q 10.3 2>&1 > /dev/null 16 16 if [ $? = 0 ]; then 17 17 DESTMACH=mondo.hpintelco.org … … 30 30 . $TOOLHOME/common-env 31 31 32 rm -rf $ DESTDIR33 cp -a ${BASE}/svn/${VER}/website $ DESTDIR32 rm -rf $LOCALDIR 33 cp -a ${BASE}/svn/${VER}/website $LOCALDIR 34 34 (cd ${BASE}/svn/${VER}/documentation ; make) 35 mkdir -p $DESTDIR/docs 36 cp -a ${BASE}/svn/${VER}/documentation/* $DESTDIR/docs 37 find $DESTDIR -type d | xargs chmod 755 38 find $DESTDIR -type f | xargs chmod 644 39 cd $DESTDIR 35 mkdir -p $LOCALDIR/docs 36 cp -a ${BASE}/svn/${VER}/documentation/* $LOCALDIR/docs 37 # 38 # Man pages corrections 39 # 40 perl -pi -e 's~/man8/~/docs/~g' $LOCALDIR/docs/*.8.html 41 perl -pi -e 's~<A HREF[=./A-z0-9"]*/man1/[^<]*>([A-z0-9]*)</A>~$1~g' $LOCALDIR/docs/*.8.html 42 perl -pi -e 's~/index.html~/index.shtml~' $LOCALDIR/docs/*.8.html 43 find $LOCALDIR -type d | xargs chmod 755 44 find $LOCALDIR -type f | xargs chmod 644 45 cd $LOCALDIR 40 46 if [ _"$1" == _"" ]; then 41 47 exit 0 … … 47 53 fi 48 54 fi 49 tar cf j /tmp/mondo-www.tz2.55 tar cfz /tmp/mondo-www.tgz . 50 56 ssh ${DESTUSER}@${DESTMACH} "rm -rf ${DESTDIR} ; mkdir ${DESTDIR}" 51 scp /tmp/mondo-www.t z2${DESTUSER}@${DESTMACH}:/tmp52 rm -f /tmp/mondo-www.t z253 ssh ${DESTUSER}@${DESTMACH} "cd ${DESTDIR} ; tar xf j /tmp/mondo-www.tz2"57 scp /tmp/mondo-www.tgz ${DESTUSER}@${DESTMACH}:/tmp 58 rm -f /tmp/mondo-www.tgz 59 ssh ${DESTUSER}@${DESTMACH} "cd ${DESTDIR} ; tar xfz /tmp/mondo-www.tgz"
Note:
See TracChangeset
for help on using the changeset viewer.