Let the gen-acls user compile the configuration file

This commit is contained in:
Pierre-Yves Chibon 2015-01-20 19:27:37 +01:00
parent ee7c1e4de9
commit 86589714ab

View file

@ -7,7 +7,8 @@ cd $TEMPDIR
# Only replace the acls if genacls completes successfully
if /usr/local/bin/genacls.pkgdb > gitolite.conf ; then
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
cd /
rm -rf $TEMPDIR