#!/bin/sh
#修改为服务编码
export LANG=zh_CN.utf-8

#Set variable
REPOS="$1"
REV="$2"


SVN=/usr/bin/svn
WEB=/home/www/develop
LOG=/var/log/svn/post-commit.log

#update the code from the SVN
$SVN update $WEB --username username --password passwd --non-interactive

chown -R www-data:www-data $WEB
chmod -R 755 $WEB

#......................
if [ $? == 0 ]
then
    echo  "$REPOS" "$REV" >> $LOG
    echo `date` >> $LOG
    echo "##############################" >> $LOG
fi

  

相关文章:

  • 2021-08-23
  • 2021-09-25
  • 2022-01-01
  • 2021-11-30
  • 2022-02-11
  • 2022-02-09
  • 2021-11-05
猜你喜欢
  • 2021-08-02
  • 2021-09-20
  • 2021-12-04
  • 2021-06-11
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案