Skip to content

Instantly share code, notes, and snippets.

@reyjrar
Created October 8, 2011 16:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reyjrar/1272535 to your computer and use it in GitHub Desktop.
Save reyjrar/1272535 to your computer and use it in GitHub Desktop.
Script using svnutils
#!/bin/bash
BINDIR="/usr/local/sbin"
SVNURL="file:///repo/projects/dns-monitor"
TARGET="/opt/www/dns-monitor"
$BINDIR/svncheckrel $SVNURL $TARGET
rc=$?;
if [ "$rc" -eq "0" ]; then
rm -rf $TARGET;
$BINDIR/svnexportrel $SVNURL $TARGET
cp -f ~/conf/dns_monitor.yml $TARGET
chgrp -R apache $TARGET/cache
chmod -R g+w $TARGET/cache
fi;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment