Fix owncloud js (from php) and add tests
parent
26c93c9315
commit
76c02abf47
|
@ -61,7 +61,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(?:css|js)$ {
|
location ~* \.(?:css|js)$ {
|
||||||
try_files $uri /index.php$uri$is_args$args;
|
try_files $uri /index.php$is_args$args;
|
||||||
add_header Cache-Control "public, max-age=7200";
|
add_header Cache-Control "public, max-age=7200";
|
||||||
expires 2h;
|
expires 2h;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
|
|
@ -312,6 +312,27 @@
|
||||||
register: nagios_cgi
|
register: nagios_cgi
|
||||||
failed_when: nagios_cgi.stdout.find('Nagios Event Summary') == -1
|
failed_when: nagios_cgi.stdout.find('Nagios Event Summary') == -1
|
||||||
|
|
||||||
|
# --------------------------------
|
||||||
|
# Owncloud
|
||||||
|
# --------------------------------
|
||||||
|
- block:
|
||||||
|
- name: -- VERIFY OWNCLOUD --
|
||||||
|
command: "curl -H 'Host: owncloud.local' http://127.0.0.1/"
|
||||||
|
changed_when: false
|
||||||
|
register: ownsimple
|
||||||
|
failed_when: ownsimple.stdout.find('ownCloud') == -1
|
||||||
|
- name: -- VERIFY OWNCLOUD JS (FROM PHP)--
|
||||||
|
command: "curl -H 'Host: owncloud.local' http://127.0.0.1/index.php/core/js/oc.js"
|
||||||
|
changed_when: false
|
||||||
|
register: ownjsphp
|
||||||
|
failed_when: ownjsphp.stdout.find('var oc_debug=false') == -1
|
||||||
|
- name: -- VERIFY OWNCLOUD JS --
|
||||||
|
command: "curl -H 'Host: owncloud.local' http://127.0.0.1/core/js/js.js"
|
||||||
|
changed_when: false
|
||||||
|
register: ownjs
|
||||||
|
failed_when: ownjs.stdout.find('var oc_debug') == -1
|
||||||
|
when: ansible_distribution != 'FreeBSD'
|
||||||
|
|
||||||
# --------------------------------
|
# --------------------------------
|
||||||
# SSL
|
# SSL
|
||||||
# --------------------------------
|
# --------------------------------
|
||||||
|
|
Loading…
Reference in New Issue