diff --git a/.gitignore b/.gitignore index 4934a79..699b160 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ docs/ requests/ releases/ remotes/ +lcl/ pagure_env/ # Other python/editor specific files to ignore dist/ diff --git a/README.rst b/README.rst index 048c3bd..c643c5c 100644 --- a/README.rst +++ b/README.rst @@ -98,7 +98,7 @@ Manually * Create the folder that will receive the projects, forks, docs, requests and tickets' git repo:: - mkdir repos docs forks tickets requests + mkdir -p lcl/{repos,docs,forks,tickets,requests,remotes,attachments} * Create the inital database scheme:: diff --git a/pagure/default_config.py b/pagure/default_config.py index 4d9e3b5..a808189 100644 --- a/pagure/default_config.py +++ b/pagure/default_config.py @@ -98,6 +98,7 @@ EVENTSOURCE_PORT = 8080 GIT_FOLDER = os.path.join( os.path.abspath(os.path.dirname(__file__)), '..', + 'lcl', 'repos' ) @@ -105,6 +106,7 @@ GIT_FOLDER = os.path.join( DOCS_FOLDER = os.path.join( os.path.abspath(os.path.dirname(__file__)), '..', + 'lcl', 'docs' ) @@ -112,6 +114,7 @@ DOCS_FOLDER = os.path.join( TICKETS_FOLDER = os.path.join( os.path.abspath(os.path.dirname(__file__)), '..', + 'lcl', 'tickets' ) @@ -119,6 +122,7 @@ TICKETS_FOLDER = os.path.join( REQUESTS_FOLDER = os.path.join( os.path.abspath(os.path.dirname(__file__)), '..', + 'lcl', 'requests' ) @@ -126,6 +130,7 @@ REQUESTS_FOLDER = os.path.join( REMOTE_GIT_FOLDER = os.path.join( os.path.abspath(os.path.dirname(__file__)), '..', + 'lcl', 'remotes' ) @@ -133,6 +138,7 @@ REMOTE_GIT_FOLDER = os.path.join( ATTACHMENTS_FOLDER = os.path.join( os.path.abspath(os.path.dirname(__file__)), '..', + 'lcl', 'attachments' ) @@ -143,12 +149,19 @@ VIRUS_SCAN_ATTACHMENTS = False GITOLITE_CONFIG = os.path.join( os.path.abspath(os.path.dirname(__file__)), '..', + 'lcl', 'gitolite.conf' ) # Configuration keys to specify where the upload folder is and what is its # name -UPLOAD_FOLDER_PATH = './releases' +UPLOAD_FOLDER_PATH = os.path.join( + os.path.abspath(os.path.dirname(__file__)), + '..', + 'lcl', + 'releases' +) + # Home folder of the gitolite user -- Folder where to run gl-compile-conf from GITOLITE_HOME = None