cvs commit: www/scripts update-website.sh

jeroen at linuxfromscratch.org jeroen at linuxfromscratch.org
Thu Nov 27 08:32:34 PST 2003


jeroen      03/11/27 09:32:33

  Modified:    scripts  update-website.sh
  Log:
  Silence the update-website.sh script some more.
  
  Revision  Changes    Path
  1.8       +5 -5      www/scripts/update-website.sh
  
  Index: update-website.sh
  ===================================================================
  RCS file: /home/cvsroot/www/scripts/update-website.sh,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- update-website.sh	26 Nov 2003 21:21:43 -0000	1.7
  +++ update-website.sh	27 Nov 2003 16:32:33 -0000	1.8
  @@ -205,7 +205,7 @@
   # Everything is in place now, so replace TARGETDIR with NEWSITE
   
   cd /var/tmp
  -tar cPf website-backup.tar $TARGETDIR && rm -rf $TARGETDIR
  +tar cPf website-backup.tar $TARGETDIR 2>&1 > /dev/null && rm -rf $TARGETDIR
   mv $NEWSITE $TARGETDIR
   mkdir -p $TARGETDIR/timestamp
   date +%s > $TARGETDIR/timestamp/timestamp
  @@ -213,12 +213,12 @@
   
   # Add some compatibility symlinks
   cd $TARGETDIR
  -ln -s lfs/view
  -ln -s images/favicon.ico
  +ln -sf lfs/view
  +ln -sf images/favicon.ico
   
   # Set proper permissions
  -chmod -R g+w $TARGETDIR/ 
  -chgrp -R lfswww $TARGETDIR
  +chmod -Rf g+w $TARGETDIR/ 
  +chgrp -Rf lfswww $TARGETDIR
   
   # Remove lock file
   rm -f $LOCKFILE
  
  
  



More information about the website mailing list