Let the gen-acls user compile the configuration file
This commit is contained in:
parent
ee7c1e4de9
commit
86589714ab
1 changed files with 2 additions and 1 deletions
|
@ -7,7 +7,8 @@ cd $TEMPDIR
|
||||||
# Only replace the acls if genacls completes successfully
|
# Only replace the acls if genacls completes successfully
|
||||||
if /usr/local/bin/genacls.pkgdb > gitolite.conf ; then
|
if /usr/local/bin/genacls.pkgdb > gitolite.conf ; then
|
||||||
mv gitolite.conf /etc/gitolite/conf/
|
mv gitolite.conf /etc/gitolite/conf/
|
||||||
/usr/bin/gitolite compile
|
chown gen-acls:gen-acls -R /etc/gitolite/conf/
|
||||||
|
sudo -u gen-acls /usr/bin/gitolite compile
|
||||||
fi
|
fi
|
||||||
cd /
|
cd /
|
||||||
rm -rf $TEMPDIR
|
rm -rf $TEMPDIR
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue