All pastes #425320 Raw Edit

Stuff

public shellscript v1 · immutable
·published 2007-04-05 12:45 UTC
rendered paste body
#!/bin/shREPOSITORY=$1WEBROOT="/var/www/html"LOGFILE="/var/log/postcommit.svn.log"SVN="/usr/bin/svn"echo "Post Commit by "`whoami` `date '+%R:%S %D'` >> $LOGFILEcd $WEBROOT 2>&1 >> $LOGFILE#$SVN --username $LOGIN --password $PASS update 2>&1 >> $LOGFILE/usr/bin/svn update 2>&1 >> $LOGFILEecho "code retour svn: " $? >> $LOGFILEecho "--------------------------------------------------------" >> $LOGFILE[root@mrf-ame2 myWEBROOT]# cat /var/log/postcommit.svn.log Post Commit Thu Apr 5 11:21:38 CEST 2007--------------------------------------------------------Post Commit jeu avr 5 11:23:48 CEST 2007U    admin/index.htmlActualisé à la révision 626.--------------------------------------------------------Post Commit jeu avr 5 11:26:24 CEST 2007À la révision 626.--------------------------------------------------------Post Commit Thu Apr 5 11:28:07 CEST 2007--------------------------------------------------------Post Commit 04/05/0711:29:37--------------------------------------------------------Post Commit 04/05/0711:29:44--------------------------------------------------------Post Commit 04/05/0711:31:02--------------------------------------------------------Post Commit 04/05/0711:31:27U    admin/index.htmlActualisé à la révision 627.--------------------------------------------------------Post Commit À la révision 627.--------------------------------------------------------Post Commit 04/05/07 11:33:57À la révision 627.--------------------------------------------------------Post Commit 11:34:32 04/05/07À la révision 627.--------------------------------------------------------Post Commit 11:47:19 04/05/07Post Commit 14:15:48 04/05/07code retour cd:  0À la révision 627.code retour svn:  0--------------------------------------------------------Post Commit 14:20:59 04/05/07code retour cd:  0code retour svn:  1--------------------------------------------------------Post Commit 14:22:59 04/05/07A    admin/index.html2Actualisé à la révision 628.code retour svn:  0--------------------------------------------------------Post Commit by root 14:30:56 04/05/07À la révision 628.code retour svn:  0--------------------------------------------------------Post Commit by root 14:31:50 04/05/07code retour svn:  1--------------------------------------------------------Post Commit by root 14:37:38 04/05/07code retour svn:  1--------------------------------------------------------