Accepting request 415038 from home:asemen

- enable HSTS to prevent the warning "The Strict-Transport-Security
  HTTP header is not configured" in admin-page
- turn maintenance:mode off after upgrade

OBS-URL: https://build.opensuse.org/request/show/415038
OBS-URL: https://build.opensuse.org/package/show/server:php:applications/nextcloud?expand=0&rev=2
This commit is contained in:
Andrej Semen 2016-07-25 11:45:04 +00:00 committed by Git OBS Bridge
parent 3e2b8ac376
commit 8c7990a768
3 changed files with 14 additions and 0 deletions

View File

@ -7,6 +7,10 @@ Alias /nextcloud "@DATAPATH@/"
Dav off
</IfModule>
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
</IfModule>
SetEnv HOME @DATAPATH@
SetEnv HTTP_HOME @DATAPATH@
</Directory>

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sat Jul 23 12:33:00 UTC 2016 - ecsos@opensuse.org
- enable HSTS to prevent the warning "The Strict-Transport-Security
HTTP header is not configured" in admin-page
- turn maintenance:mode off after upgrade
-------------------------------------------------------------------
Thu Jul 21 15:17:28 CEST 2016 - asemen@suse.de

View File

@ -196,7 +196,10 @@ if [ -s /tmp/apache_stopped_during_nextcloud_install ]; then
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
service httpd start
%endif
echo "%{name}: occ maintenance:mode --off"
su %{oc_user} -s /bin/sh -c "cd %{oc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ maintenance:mode --off" || true
fi
rm -f /tmp/apache_stopped_during_nextcloud_install
%clean