Guest User

Untitled

a guest
Jun 20th, 2018
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. Alias /uploads /home/user/uploads/
  2.  
  3. #!/bin/sh
  4.  
  5. REV=2410
  6. REVDIR=$REV.20090602-1027
  7.  
  8. REPOSITORY=svn+ssh://topbit@svn.example.com/var/svn/website.com/trunk
  9. IMAGES=$REVDIR/php/i
  10. STATIC1=$REVDIR/anothersite.co.uk
  11.  
  12. svn export --revision $REV $REPOSITORY $REVDIR
  13.  
  14. mkdir -p $REVDIR/tmp/templates_c
  15. chown -R username: $REVDIR
  16. chmod -R 777 $REVDIR/tmp $REVDIR/php/cache/
  17. chown -R nobody: $REVDIR/tmp $REVDIR/php/cache/ $IMAGES
  18. dos2unix $REVDIR/bin/*sh $REVDIR/bin/*php
  19. chmod 755 $REVDIR/bin/*sh $REVDIR/bin/*php
  20.  
  21. # chmod -x all the non-directories in images
  22. find $IMAGES -type f -perm -a+x | xargs -r chmod --quiet -x
  23. find $STATIC1 -type f -perm -a+x | xargs -r chmod --quiet -x
  24.  
  25. ls -l $IMAGES/* | grep -- "-x"
  26.  
  27. rm dev && ln -s $REVDIR dev
  28.  
  29. #!/bin/sh
  30. # remove live, and copy the dir pointed to by dev, to be the live symlink
  31. rm live && cp -d dev live
Add Comment
Please, Sign In to add comment