Run the compile as root but then specify the HOME variable

This commit is contained in:
Pierre-Yves Chibon 2015-01-23 10:04:03 +01:00
parent 05ccee91be
commit 4b57e9101d

View file

@ -8,7 +8,7 @@ cd $TEMPDIR
if /usr/local/bin/genacls.pkgdb > gitolite.conf ; then
mv gitolite.conf /etc/gitolite/conf/
chown gen-acls:gen-acls -R /etc/gitolite/conf/
sudo -u gen-acls /usr/bin/gitolite compile
HOME=/srv/git /usr/bin/gitolite compile
fi
cd /
rm -rf $TEMPDIR