Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Alias /uploads /home/user/uploads/
- #!/bin/sh
- REV=2410
- REVDIR=$REV.20090602-1027
- REPOSITORY=svn+ssh://topbit@svn.example.com/var/svn/website.com/trunk
- IMAGES=$REVDIR/php/i
- STATIC1=$REVDIR/anothersite.co.uk
- svn export --revision $REV $REPOSITORY $REVDIR
- mkdir -p $REVDIR/tmp/templates_c
- chown -R username: $REVDIR
- chmod -R 777 $REVDIR/tmp $REVDIR/php/cache/
- chown -R nobody: $REVDIR/tmp $REVDIR/php/cache/ $IMAGES
- dos2unix $REVDIR/bin/*sh $REVDIR/bin/*php
- chmod 755 $REVDIR/bin/*sh $REVDIR/bin/*php
- # chmod -x all the non-directories in images
- find $IMAGES -type f -perm -a+x | xargs -r chmod --quiet -x
- find $STATIC1 -type f -perm -a+x | xargs -r chmod --quiet -x
- ls -l $IMAGES/* | grep -- "-x"
- rm dev && ln -s $REVDIR dev
- #!/bin/sh
- # remove live, and copy the dir pointed to by dev, to be the live symlink
- rm live && cp -d dev live
Add Comment
Please, Sign In to add comment