Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
infrastructure
Commits
29e66580
Commit
29e66580
authored
Sep 05, 2020
by
Jelle van der Waa
🚧
Browse files
Merge branch 'archwiki-perms' into 'master'
archwiki: fix directory permissions See merge request
!64
parents
8ee3d76b
7db1af01
Pipeline
#1617
passed with stage
in 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
roles/archwiki/tasks/main.yml
View file @
29e66580
...
...
@@ -21,7 +21,16 @@
register
:
user_created
-
name
:
fix home permissions
file
:
state=directory owner="{{ archwiki_user }}" group="{{ archwiki_user }}" mode=0750 path="{{ archwiki_dir }}"
file
:
state=directory owner="{{ archwiki_user }}" group="{{ archwiki_user }}" mode=0751 path="{{ archwiki_dir }}"
-
name
:
fix cache permissions
file
:
state=directory owner="{{ archwiki_user }}" group="{{ archwiki_user }}" mode=0750 path="{{ archwiki_dir }}/cache"
-
name
:
fix sessions permissions
file
:
state=directory owner="{{ archwiki_user }}" group="{{ archwiki_user }}" mode=0750 path="{{ archwiki_dir }}/sessions"
-
name
:
fix uploads permissions
file
:
state=directory owner="{{ archwiki_user }}" group="{{ archwiki_user }}" mode=0755 path="{{ archwiki_dir }}/uploads"
-
name
:
set up nginx
template
:
src=nginx.d.conf.j2 dest="{{ archwiki_nginx_conf }}" owner=root group=root mode=644
...
...
@@ -49,18 +58,6 @@
notify
:
-
run wiki updatescript
-
name
:
fix home permissions
file
:
state=directory owner="{{ archwiki_user }}" group="{{ archwiki_user }}" mode=0750 path="{{ archwiki_dir }}"
-
name
:
fix cache permissions
file
:
state=directory owner="{{ archwiki_user }}" group="{{ archwiki_user }}" mode=0755 path="{{ archwiki_dir }}/cache"
-
name
:
fix sessions permissions
file
:
state=directory owner="{{ archwiki_user }}" group="{{ archwiki_user }}" mode=0755 path="{{ archwiki_dir }}/sessions"
-
name
:
fix uploads permissions
file
:
state=directory owner="{{ archwiki_user }}" group="{{ archwiki_user }}" mode=0755 path="{{ archwiki_dir }}/uploads"
-
name
:
configure archwiki
template
:
src=LocalSettings.php.j2 dest="{{ archwiki_dir }}/public/LocalSettings.php" owner="{{ archwiki_user }}" group="{{ archwiki_user }}" mode=0640
register
:
config
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment