Misc people fixes:
Set the cgit repos dir to be readable by apache. Set git context for public_git dirs Allow cgit to read it's css and such.
This commit is contained in:
parent
ba474ef458
commit
0097fdcda7
3 changed files with 21 additions and 0 deletions
|
@ -15,3 +15,4 @@ for homedir in /home/fedora/* ; do
|
||||||
done
|
done
|
||||||
|
|
||||||
cp -f $outfile $finalfile
|
cp -f $outfile $finalfile
|
||||||
|
chmod 644 $finalfile
|
||||||
|
|
|
@ -54,6 +54,10 @@ NameVirtualHost [2610:28:3090:3001:5054:ff:feff:683f]:443
|
||||||
Require all granted
|
Require all granted
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
|
<Directory /usr/share/cgit>
|
||||||
|
Require all granted
|
||||||
|
</Directory>
|
||||||
|
|
||||||
UserDir public_html
|
UserDir public_html
|
||||||
<Directory /home/fedora/*/public_html>
|
<Directory /home/fedora/*/public_html>
|
||||||
AllowOverride FileInfo AuthConfig Limit Indexes
|
AllowOverride FileInfo AuthConfig Limit Indexes
|
||||||
|
|
|
@ -41,6 +41,22 @@
|
||||||
tags:
|
tags:
|
||||||
- people
|
- people
|
||||||
|
|
||||||
|
- name: check the selinux context of the users home git dirs
|
||||||
|
command: matchpathcon "/home/fedora/(/.*)/public_git(/.*)?"
|
||||||
|
register: gitcontext
|
||||||
|
always_run: yes
|
||||||
|
changed_when: false
|
||||||
|
tags:
|
||||||
|
- config
|
||||||
|
- selinux
|
||||||
|
|
||||||
|
- name: set the SELinux policy for the users home git dirs
|
||||||
|
command: semanage fcontext -a -t git_user_content_t "/home/fedora/(/.*)/public_git(/.*)?"
|
||||||
|
when: distgitcontext.stdout.find('git_user_content_t') == -1
|
||||||
|
tags:
|
||||||
|
- config
|
||||||
|
- selinux
|
||||||
|
|
||||||
#
|
#
|
||||||
# This sets the default, it's safe to always run.
|
# This sets the default, it's safe to always run.
|
||||||
# Default quota for users is 2gb
|
# Default quota for users is 2gb
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue