cvs commit: www/scripts update-website.sh

lizardo at linuxfromscratch.org lizardo at linuxfromscratch.org
Wed Jan 7 08:48:41 PST 2004


lizardo     04/01/07 09:48:41

  Modified:    scripts  update-website.sh
  Log:
  update-website.sh: fixed possible "empty site" cause.
  
  Revision  Changes    Path
  1.14      +3 -4      www/scripts/update-website.sh
  
  Index: update-website.sh
  ===================================================================
  RCS file: /home/cvsroot/www/scripts/update-website.sh,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- update-website.sh	7 Jan 2004 10:51:43 -0000	1.13
  +++ update-website.sh	7 Jan 2004 16:48:40 -0000	1.14
  @@ -198,7 +198,7 @@
   done
   
   export TARGETDIR="/home/httpd/www.linuxfromscratch.org"
  -[ ! -d $TARGETDIR ] && mkdir -p $TARGETDIR
  +mkdir -p $TARGETDIR
   cd $NEWSITE
   cp -a $TARGETDIR/lfs/{view,downloads} lfs/
   cp -a $TARGETDIR/blfs/{view,artwork,edguide,downloads} blfs/
  @@ -209,9 +209,8 @@
   # Everything is in place now, so replace TARGETDIR with NEWSITE
   
   cd /var/tmp
  -tar cPf website-backup.tar $TARGETDIR 2>&1 > /dev/null &&
  -#rm -rf $TARGETDIR &&
  -#mv $NEWSITE/* $TARGETDIR
  +tar cPf website-backup.tar $TARGETDIR 2>&1 > /dev/null && rm -rf $TARGETDIR
  +mkdir -p $TARGETDIR
   
   tar -cC $NEWSITE . | tar  -xC $TARGETDIR
   
  
  
  



More information about the website mailing list