libravatar: minor fixes
This commit is contained in:
parent
bd7f9f8f0c
commit
ecbaba4301
1 changed files with 5 additions and 5 deletions
|
@ -45,8 +45,8 @@
|
||||||
virtualenv_command: virtualenv-3
|
virtualenv_command: virtualenv-3
|
||||||
chdir: /srv/libravatar
|
chdir: /srv/libravatar
|
||||||
|
|
||||||
- name: copy run-in-venv.sh script
|
- name: copy run-in-venv script
|
||||||
shell: cp /mnt/data/run-in-venv.sh /usr/local/bin
|
shell: cp /mnt/data/run-in-venv /usr/local/bin
|
||||||
|
|
||||||
- name: 'postgresql host is localhost'
|
- name: 'postgresql host is localhost'
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
@ -69,16 +69,16 @@
|
||||||
service: state=started enabled=yes name=postgresql
|
service: state=started enabled=yes name=postgresql
|
||||||
|
|
||||||
- name: upgrade db to head
|
- name: upgrade db to head
|
||||||
command: "run-in-venv.sh python3 manage.py migrate"
|
command: "run-in-venv python3 manage.py migrate"
|
||||||
args:
|
args:
|
||||||
chdir: /srv/libravatar
|
chdir: /srv/libravatar
|
||||||
|
|
||||||
- name: collect static
|
- name: collect static
|
||||||
command: "run-in-venv.sh python3 manage.py collectstatic --noinput"
|
command: "run-in-venv python3 manage.py collectstatic --noinput"
|
||||||
args:
|
args:
|
||||||
chdir: /srv/libravatar
|
chdir: /srv/libravatar
|
||||||
|
|
||||||
# otherwise Apache cannot execute psyco shared lib in virtualenv with httpd_sys_content_t type
|
# so Apache can execute psyco shared lib in virtualenv with httpd_sys_content_t type
|
||||||
- name: Set unified flag for Apache
|
- name: Set unified flag for Apache
|
||||||
seboolean:
|
seboolean:
|
||||||
name: httpd_unified
|
name: httpd_unified
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue