Repository :
http://git.fedorahosted.org/cgit/copr.git
On branch : master
---------------------------------------------------------------
commit 67d59038f7612fc901dc28919bd97f51a4a9a500
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Mon Sep 16 10:55:04 2013 +0200
move results into /var/lib/copr/public_html
so we can store in /var/lib/copr various other data which will not be accessible over
http
---------------------------------------------------------------
copr-be.conf.example | 2 +-
copr-setup.txt | 2 +-
copr.spec | 6 ++++--
3 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/copr-be.conf.example b/copr-be.conf.example
index da24b34..fac35dc 100644
--- a/copr-be.conf.example
+++ b/copr-be.conf.example
@@ -28,7 +28,7 @@ jobsdir=/srv/copr-work/jobs
# directory where results are stored
# should be accessible from web using 'results_baseurl' URL
# no default
-destdir=/var/lib/copr/results
+destdir=/var/lib/copr/public_html/results
# default is 10
sleeptime=30
diff --git a/copr-setup.txt b/copr-setup.txt
index ff45252..f4f0f23 100644
--- a/copr-setup.txt
+++ b/copr-setup.txt
@@ -67,7 +67,7 @@ Backend manualy:
- cp /usr/share/doc/copr-*/lighttpd/* /etc/lighttpd/conf.d/
- edit file /etc/lighttpd/lighttpd.conf as follows:
-server.document-root = server_root + "/lighttpd"
- +server.document-root = "/srv/copr-repo"
+ +server.document-root = "/var/lib/copr/public_html"
this is recomended to be separate mount point
Frontend:
diff --git a/copr.spec b/copr.spec
index c5e4e89..7241e13 100644
--- a/copr.spec
+++ b/copr.spec
@@ -116,12 +116,13 @@ popd
#backend
install -d %{buildroot}%{_sharedstatedir}/copr
-install -d %{buildroot}%{_sharedstatedir}/copr/results
+install -d %{buildroot}%{_sharedstatedir}/copr/public_html/results
install -d %{buildroot}%{_var}/log/copr
install -d %{buildroot}%{_var}/log/copr/workers/
install -d %{buildroot}%{_pkgdocdir}/lighttpd/
install -d %{buildroot}%{_datadir}/copr/backend
install -d %{buildroot}%{_sysconfdir}/copr
+
cp -a backend/* %{buildroot}%{_datadir}/copr/backend
cp -a copr-be.py %{buildroot}%{_datadir}/copr/
cp -a copr-be.conf.example %{buildroot}%{_sysconfdir}/copr/copr-be.conf
@@ -177,7 +178,8 @@ service httpd condrestart
%doc LICENSE README
%dir %{_datadir}/copr
%dir %{_sharedstatedir}/copr
-%dir %attr(0755, copr, copr) %{_sharedstatedir}/copr/results
+%dir %attr(0755, copr, copr) %{_sharedstatedir}/copr/public_html/
+%dir %attr(0755, copr, copr) %{_sharedstatedir}/copr/public_html/results
%dir %attr(0755, copr, copr) %{_var}/log/copr
%dir %attr(0755, copr, copr) %{_var}/log/copr/workers
%ghost %{_var}/log/copr/copr.log