Make genacls.sh a template.
This commit is contained in:
parent
37e6e4d939
commit
2bca286974
2 changed files with 1 additions and 1 deletions
|
@ -1,18 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
python /usr/local/bin/pkgdb_sync_git_branches.py
|
||||
|
||||
TEMPDIR=`mktemp -d -p /var/tmp genacls.XXXXX`
|
||||
export GL_BINDIR=/usr/bin
|
||||
|
||||
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/
|
||||
chown gen-acls:gen-acls -R /etc/gitolite/conf/
|
||||
HOME=/srv/git /usr/bin/gitolite compile
|
||||
fi
|
||||
cd /
|
||||
rm -rf $TEMPDIR
|
||||
chown root:packager /etc/gitolite/conf/gitolite.conf-compiled.pm
|
||||
chmod g+r /etc/gitolite/conf/gitolite.conf-compiled.pm
|
Loading…
Add table
Add a link
Reference in a new issue