gitolite - 智能HTTP - 给出了RC未初始化值(QUOT; UMASK") [英] gitolite - smart-http - gives uninitialised value for rc("UMASK")
问题描述
我收到以下错误我的 /var/log/apache2/error.log
当我尝试做一个混帐克隆到我的服务器上运行的智能gitolite -http启用
I'm getting the following error in my /var/log/apache2/error.log
when I try to do a git clone to my server running gitolite with smart-http enabled
[Wed Jul 25 21:53:36 2012] [error] [client 124.149.104.106] FATAL: warn\tUse of
uninitialized value $rc{"UMASK"} in umask at /opt/git/gitolite-source/src/
gitolite-shell line 95, <DATA> line 1.<<newline>>
我有设置为 UMASK
值 0027
在 /家庭/ git的/ .gitolite.rc
任何思考为什么从一个文件中su_exec名为站点可用
?
Any thoughts why the value isn't setting when called from an su_exec from a file in sites-available
?
我运行Apache作为WWW的数据 - 并设置了权限的各种脚本按照说明书的这里 - 例如:
I'm running apache as www-data - and have set up permissions on the various scripts as per the instructions here - ie:
install -d -m 0755 -o git -g git /var/www/bin
install -d -m 0755 -o www -g www /var/www/git
和则:
里面创建一个shell脚本 /无功/网络/斌
名为 gitolite-suexec-wrapper.sh
,与模式 0700
并通过用户和组拥有的混帐
。
create a shell script inside /var/www/bin
named gitolite-suexec-wrapper.sh
, with mode 0700
and owned by user and group git
.
推荐答案
确定了它 - 基本上我重新安装从头开始:
Ok got it - basically I reinstalled starting from scratch:
- 安装gitolite (安装源到
/家/混帐
目录并运行安装与使用苏
)混帐
用户 - 蹦 - 警告这里
- 运行本文档的步骤(即不运行该文件 - 只需逐行)
- 请不要运行这里出口,我们会尽可能git的运行gitolite用户
- 使用安装的GitWeb apt-get的 - 其配置为指向存储库在
/家/的git /库
-
将以下到Apache站点配置这里
/etc/apache2/sites-available/git.servername.com
- Install gitolite (installing the source to the
/home/git
directory and running the setup as thegit
user usingsu - git
) - Read the warning here
- Run the steps in this document (ie not run the file - just line by line)
- Don't run the exports here as we'll run gitolite as the git user
- Install gitweb using apt-get - configure it to point to the repositories at
/home/git/repositories
Put the following into the apache site configuration here
/etc/apache2/sites-available/git.servername.com
<VirtualHost *:80>
ServerAdmin mail@servername.com
ServerAlias git
ServerName git.servername.com
DocumentRoot /var/www/git
<Directory /var/www/git>
Options +Indexes
AllowOverride none
Order allow,deny
Allow from all
</Directory>
SuexecUserGroup git git
ScriptAlias /git/ /var/www/bin/gitolite-suexec-wrapper.sh/
ScriptAlias /gitmob/ /var/www/bin/gitolite-suexec-wrapper.sh/
<Location /git>
AuthType Basic
AuthName "Git Access"
Require valid-user
AuthUserFile /home/git/gitolite-http-authuserfile
</Location>
Loglevel warn
ErrorLog /var/log/apache2/error.log
CustomLog /var/log/apache2/access.log combined
</VirtualHost>
从这里使用样式的GitWeb 。
现在我可以通过使用SSH访问我的网站 git的克隆SSH://git@git.servername.com:gitolite-admin.git
HTTP://admin@git.servername.com/git/testing.git
Now I can access my site via ssh using
git clone ssh://git@git.servername.com:gitolite-admin.git
http://admin@git.servername.com/git/testing.git
和查看它在
http://servername.com/gitweb
这篇关于gitolite - 智能HTTP - 给出了RC未初始化值(QUOT; UMASK&QUOT;)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!