目的:
当建trac库时,自动复制自己已经设置好的trac.ini
步骤:
Shell> mkdir -p /var/www/gps/conf
Shell> chown apache.apache -R /var/www/gps
trac.ini文件内容见trac.ini讲解.
Shell>vim /var/www/html/SvnManager/TracAdminEdit.pl #在58行左右修改添加如下 # 引用gps trac.ini my $config = `cp -f /var/www/gps/conf/trac.ini $self->{$depa}/$project/conf/trac.ini`; system("sed -i s/TRAC/$project/g $self->{$depa}/$project/conf/trac.ini"); system("sed -i s/TEST/$project/g $self->{$depa}/$project/conf/trac.ini");
本文出自 “笔记” 博客,请务必保留此出处http://sunflower2.blog.51cto.com/8837503/1548992
原文地址:http://sunflower2.blog.51cto.com/8837503/1548992