cvs commit: www/scripts update-website.sh

jeroen at linuxfromscratch.org jeroen at linuxfromscratch.org
Wed Nov 26 12:02:57 PST 2003


jeroen      03/11/26 13:02:57

  Modified:    scripts  update-website.sh
  Log:
  Change backup from update-website.sh to a tarfile; should fix the permissions issues
  
  Revision  Changes    Path
  1.6       +4 -6      www/scripts/update-website.sh
  
  Index: update-website.sh
  ===================================================================
  RCS file: /home/cvsroot/www/scripts/update-website.sh,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- update-website.sh	25 Nov 2003 22:43:23 -0000	1.5
  +++ update-website.sh	26 Nov 2003 20:02:57 -0000	1.6
  @@ -204,10 +204,8 @@
   #################################################
   # Everything is in place now, so replace TARGETDIR with NEWSITE
   
  -export BACKUPDIR=/var/tmp/website-backup
  -cd /
  -rm -rf $BACKUPDIR
  -mv $TARGETDIR $BACKUPDIR
  +cd /var/tmp
  +tar cf website-backup.tar $TARGETDIR
   mv $NEWSITE $TARGETDIR
   mkdir -p $TARGETDIR/timestamp
   date +%s > $TARGETDIR/timestamp/timestamp
  @@ -219,8 +217,8 @@
   ln -s images/favicon.ico
   
   # Set proper permissions
  -chmod -R g+w $TARGETDIR/ $BACKUPDIR
  -chgrp -R lfswww $TARGETDIR $BACKUPDIR
  +chmod -R g+w $TARGETDIR/ 
  +chgrp -R lfswww $TARGETDIR
   
   # Remove lock file
   rm -f $LOCKFILE
  
  
  



More information about the website mailing list