cvs commit: www/scripts update-website.sh

jeroen at linuxfromscratch.org jeroen at linuxfromscratch.org
Mon Nov 24 07:32:04 PST 2003


jeroen      03/11/24 08:32:04

  Modified:    scripts  update-website.sh
  Log:
  Fix permissions on the backup of the website
  
  Revision  Changes    Path
  1.4       +5 -4      www/scripts/update-website.sh
  
  Index: update-website.sh
  ===================================================================
  RCS file: /home/cvsroot/www/scripts/update-website.sh,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- update-website.sh	23 Nov 2003 11:36:14 -0000	1.3
  +++ update-website.sh	24 Nov 2003 15:32:03 -0000	1.4
  @@ -204,9 +204,10 @@
   #################################################
   # Everything is in place now, so replace TARGETDIR with NEWSITE
   
  +export BACKUPDIR=/var/tmp/website-backup
   cd /
  -rm -rf /var/tmp/website-backup
  -mv $TARGETDIR /var/tmp/website-backup
  +rm -rf $BACKUPDIR
  +mv $TARGETDIR $BACKUPDIR
   mv $NEWSITE $TARGETDIR
   mkdir -p $TARGETDIR/timestamp
   date +%s > $TARGETDIR/timestamp/timestamp
  @@ -218,8 +219,8 @@
   ln -s images/favicon.ico
   
   # Set proper permissions
  -chmod -R g+w $TARGETDIR/
  -chgrp -R lfswww $TARGETDIR
  +chmod -R g+w $TARGETDIR/ $BACKUPDIR
  +chgrp -R lfswww $TARGETDIR $BACKUPDIR
   
   # Remove lock file
   rm -f $LOCKFILE
  
  
  



More information about the website mailing list