Fix install path (closes: #595)

This commit is contained in:
Xavier Guimard 2017-02-28 20:40:29 +00:00
parent 4964b5a5d5
commit 1efacd1d14
9 changed files with 21 additions and 21 deletions

View File

@ -50,14 +50,14 @@ DATADIR=$(LMPREFIX)/data
# Document roots for Apache VirtualHosts # Document roots for Apache VirtualHosts
DOCUMENTROOT=$(LMPREFIX)/htdocs DOCUMENTROOT=$(LMPREFIX)/htdocs
PORTALDIR=$(DOCUMENTROOT)/portal PORTALDIR=$(DOCUMENTROOT)/portal
PORTALSITEDIR=$(PORTALDIR) PORTALSITEDIR=$(PORTALDIR)/htdocs
PORTALSTATICDIR=$(PORTALSITEDIR)/htdocs/static PORTALSTATICDIR=$(PORTALSITEDIR)/static
PORTALRELATIVESTATICDIR=/static PORTALRELATIVESTATICDIR=/static
PORTALTEMPLATESDIR=$(PORTALSITEDIR)/templates PORTALTEMPLATESDIR=$(PORTALDIR)/templates
MANAGERDIR=$(DOCUMENTROOT)/manager MANAGERDIR=$(DOCUMENTROOT)/manager
MANAGERSITEDIR=$(MANAGERDIR) MANAGERSITEDIR=$(MANAGERDIR)/htdocs
MANAGERSTATICDIR=$(MANAGERSITEDIR)/htdocs/static MANAGERSTATICDIR=$(MANAGERSITEDIR)/static
MANAGERRELATIVESTATICDIR=/static MANAGERRELATIVESTATICDIR=/static
MANAGERTEMPLATESDIR=$(MANAGERSITEDIR)/templates MANAGERTEMPLATESDIR=$(MANAGERSITEDIR)/templates
DOCDIR=$(DOCUMENTROOT) DOCDIR=$(DOCUMENTROOT)
@ -626,7 +626,7 @@ install_manager_site: install_conf_dir
# Manager install # Manager install
@install -v -d $(RMANAGERDIR) $(RMANAGERSTATICDIR) \ @install -v -d $(RMANAGERDIR) $(RMANAGERSTATICDIR) \
$(RMANAGERTEMPLATESDIR) $(RMANAGERTEMPLATESDIR)
@cp -pR -f $(SRCMANAGERDIR)/site/htdocs/manager.* $(RMANAGERDIR) @cp -pR -f $(SRCMANAGERDIR)/site/htdocs/manager.* $(RMANAGERSITEDIR)
@cp -pR $(SRCMANAGERDIR)/site/htdocs/static/* $(RMANAGERSTATICDIR) @cp -pR $(SRCMANAGERDIR)/site/htdocs/static/* $(RMANAGERSTATICDIR)
@for f in $(SRCMANAGERDIR)/site/templates/*.tpl; do \ @for f in $(SRCMANAGERDIR)/site/templates/*.tpl; do \
./scripts/transform-templates \ ./scripts/transform-templates \
@ -652,7 +652,7 @@ install_portal_site: install_conf_dir
@install -v -d $(RPORTALDIR) $(RPORTALSTATICDIR) \ @install -v -d $(RPORTALDIR) $(RPORTALSTATICDIR) \
$(RPORTALTEMPLATESDIR) \ $(RPORTALTEMPLATESDIR) \
$(RCRONDIR) $(RCONFDIR) $(RCRONDIR) $(RCONFDIR)
@cp -pR -f $(SRCPORTALDIR)/site/htdocs/index.* $(RPORTALDIR) @cp -pR -f $(SRCPORTALDIR)/site/htdocs/index.* $(RPORTALSITEDIR)
@cp -pR -f $(SRCPORTALDIR)/site/htdocs/static/* $(RPORTALSTATICDIR) @cp -pR -f $(SRCPORTALDIR)/site/htdocs/static/* $(RPORTALSTATICDIR)
cd $(SRCPORTALDIR)/site/templates; for f in `find * -type f -name '*.tpl'`; do \ cd $(SRCPORTALDIR)/site/templates; for f in `find * -type f -name '*.tpl'`; do \
echo "$$f => $(RPORTALTEMPLATESDIR)/$$f"; \ echo "$$f => $(RPORTALTEMPLATESDIR)/$$f"; \

View File

@ -46,12 +46,12 @@
</Files> </Files>
# If you want to use mod_fastcgi, replace lines below by: # If you want to use mod_fastcgi, replace lines below by:
#FastCgiServer __MANAGERDIR__/manager.fcgi #FastCgiServer __MANAGERSITEDIR__/manager.fcgi
# GLOBAL CONFIGURATION # GLOBAL CONFIGURATION
# -------------------- # --------------------
DocumentRoot __MANAGERDIR__ DocumentRoot __MANAGERSITEDIR__
<Location /> <Location />
Require all granted Require all granted

View File

@ -46,12 +46,12 @@
</Files> </Files>
# If you want to use mod_fastcgi, replace lines below by: # If you want to use mod_fastcgi, replace lines below by:
#FastCgiServer __MANAGERDIR__/manager.fcgi #FastCgiServer __MANAGERSITEDIR__/manager.fcgi
# GLOBAL CONFIGURATION # GLOBAL CONFIGURATION
# -------------------- # --------------------
DocumentRoot __MANAGERDIR__ DocumentRoot __MANAGERSITEDIR__
<Location /> <Location />
<IfVersion >= 2.3> <IfVersion >= 2.3>

View File

@ -46,12 +46,12 @@
</Files> </Files>
# If you want to use mod_fastcgi, replace lines below by: # If you want to use mod_fastcgi, replace lines below by:
#FastCgiServer __MANAGERDIR__/manager.fcgi #FastCgiServer __MANAGERSITEDIR__/manager.fcgi
# GLOBAL CONFIGURATION # GLOBAL CONFIGURATION
# -------------------- # --------------------
DocumentRoot __MANAGERDIR__ DocumentRoot __MANAGERSITEDIR__
<Location /> <Location />
Order Deny,Allow Order Deny,Allow

View File

@ -1,7 +1,7 @@
server { server {
listen __PORT__; listen __PORT__;
server_name manager.__DNSDOMAIN__; server_name manager.__DNSDOMAIN__;
root __MANAGERDIR__; root __MANAGERSITEDIR__;
if ($uri !~ ^/(.*\.psgi|static|doc|fr-doc|lib|javascript|favicon)) { if ($uri !~ ^/(.*\.psgi|static|doc|fr-doc|lib|javascript|favicon)) {
rewrite ^/(.*)$ /manager.psgi/$1 break; rewrite ^/(.*)$ /manager.psgi/$1 break;

View File

@ -10,8 +10,8 @@
ServerName auth.__DNSDOMAIN__ ServerName auth.__DNSDOMAIN__
# DocumentRoot (FCGI scripts) # DocumentRoot (FCGI scripts)
DocumentRoot __PORTALDIR__ DocumentRoot __PORTALSITEDIR__
<Directory __PORTALDIR__> <Directory __PORTALSITEDIR__>
Require all granted Require all granted
Options +ExecCGI +FollowSymLinks Options +ExecCGI +FollowSymLinks
</Directory> </Directory>

View File

@ -10,8 +10,8 @@
ServerName auth.__DNSDOMAIN__ ServerName auth.__DNSDOMAIN__
# DocumentRoot (FCGI scripts) # DocumentRoot (FCGI scripts)
DocumentRoot __PORTALDIR__ DocumentRoot __PORTALSITEDIR__
<Directory __PORTALDIR__> <Directory __PORTALSITEDIR__>
<IfVersion >= 2.3> <IfVersion >= 2.3>
Require all granted Require all granted
</IfVersion> </IfVersion>

View File

@ -10,8 +10,8 @@
ServerName auth.__DNSDOMAIN__ ServerName auth.__DNSDOMAIN__
# DocumentRoot (FCGI scripts) # DocumentRoot (FCGI scripts)
DocumentRoot __PORTALDIR__ DocumentRoot __PORTALSITEDIR__
<Directory __PORTALDIR__> <Directory __PORTALSITEDIR__>
Order allow,deny Order allow,deny
Allow from all Allow from all
Options +ExecCGI +FollowSymLinks Options +ExecCGI +FollowSymLinks

View File

@ -1,7 +1,7 @@
server { server {
listen __PORT__; listen __PORT__;
server_name auth.__DNSDOMAIN__; server_name auth.__DNSDOMAIN__;
root __PORTALDIR__; root __PORTALSITEDIR__;
if ($uri !~ ^/((static|javascript|favicon).*|.*\.psgi)) { if ($uri !~ ^/((static|javascript|favicon).*|.*\.psgi)) {
rewrite ^/(.*)$ /index.psgi/$1 break; rewrite ^/(.*)$ /index.psgi/$1 break;