Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Julien Ledoux
lemonldap-ng
Commits
1efacd1d
Commit
1efacd1d
authored
Feb 28, 2017
by
Yadd
Browse files
Fix install path (closes: #595)
parent
4964b5a5
Changes
9
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
1efacd1d
...
...
@@ -50,14 +50,14 @@ DATADIR=$(LMPREFIX)/data
# Document roots for Apache VirtualHosts
DOCUMENTROOT
=
$(LMPREFIX)
/htdocs
PORTALDIR
=
$(DOCUMENTROOT)
/portal
PORTALSITEDIR
=
$(PORTALDIR)
PORTALSTATICDIR
=
$(PORTALSITEDIR)
/
htdocs/
static
PORTALSITEDIR
=
$(PORTALDIR)
/htdocs
PORTALSTATICDIR
=
$(PORTALSITEDIR)
/static
PORTALRELATIVESTATICDIR
=
/static
PORTALTEMPLATESDIR
=
$(PORTAL
SITE
DIR)
/templates
PORTALTEMPLATESDIR
=
$(PORTALDIR)
/templates
MANAGERDIR
=
$(DOCUMENTROOT)
/manager
MANAGERSITEDIR
=
$(MANAGERDIR)
MANAGERSTATICDIR
=
$(MANAGERSITEDIR)
/
htdocs/
static
MANAGERSITEDIR
=
$(MANAGERDIR)
/htdocs
MANAGERSTATICDIR
=
$(MANAGERSITEDIR)
/static
MANAGERRELATIVESTATICDIR
=
/static
MANAGERTEMPLATESDIR
=
$(MANAGERSITEDIR)
/templates
DOCDIR
=
$(DOCUMENTROOT)
...
...
@@ -626,7 +626,7 @@ install_manager_site: install_conf_dir
# Manager install
@
install
-v
-d
$(RMANAGERDIR)
$(RMANAGERSTATICDIR)
\
$(RMANAGERTEMPLATESDIR)
@
cp
-pR
-f
$(SRCMANAGERDIR)
/site/htdocs/manager.
*
$(RMANAGERDIR)
@
cp
-pR
-f
$(SRCMANAGERDIR)
/site/htdocs/manager.
*
$(RMANAGER
SITE
DIR)
@
cp
-pR
$(SRCMANAGERDIR)
/site/htdocs/static/
*
$(RMANAGERSTATICDIR)
@
for
f
in
$(SRCMANAGERDIR)
/site/templates/
*
.tpl
;
do
\
./scripts/transform-templates
\
...
...
@@ -652,7 +652,7 @@ install_portal_site: install_conf_dir
@
install
-v
-d
$(RPORTALDIR)
$(RPORTALSTATICDIR)
\
$(RPORTALTEMPLATESDIR)
\
$(RCRONDIR)
$(RCONFDIR)
@
cp
-pR
-f
$(SRCPORTALDIR)
/site/htdocs/index.
*
$(RPORTALDIR)
@
cp
-pR
-f
$(SRCPORTALDIR)
/site/htdocs/index.
*
$(RPORTAL
SITE
DIR)
@
cp
-pR
-f
$(SRCPORTALDIR)
/site/htdocs/static/
*
$(RPORTALSTATICDIR)
cd
$(SRCPORTALDIR)
/site/templates
;
for
f
in
`
find
*
-type
f
-name
'*.tpl'
`
;
do
\
echo
"
$$
f =>
$(RPORTALTEMPLATESDIR)
/
$$
f"
;
\
...
...
_example/etc/manager-apache2.4.conf
View file @
1efacd1d
...
...
@@ -46,12 +46,12 @@
</
Files
>
# If you want to use mod_fastcgi, replace lines below by:
#FastCgiServer __MANAGERDIR__/manager.fcgi
#FastCgiServer __MANAGER
SITE
DIR__/manager.fcgi
# GLOBAL CONFIGURATION
# --------------------
DocumentRoot
__
MANAGERDIR__
DocumentRoot
__
MANAGER
SITE
DIR__
<
Location
/>
Require
all
granted
...
...
_example/etc/manager-apache2.X.conf
View file @
1efacd1d
...
...
@@ -46,12 +46,12 @@
</
Files
>
# If you want to use mod_fastcgi, replace lines below by:
#FastCgiServer __MANAGERDIR__/manager.fcgi
#FastCgiServer __MANAGER
SITE
DIR__/manager.fcgi
# GLOBAL CONFIGURATION
# --------------------
DocumentRoot
__
MANAGERDIR__
DocumentRoot
__
MANAGER
SITE
DIR__
<
Location
/>
<
IfVersion
>=
2
.
3
>
...
...
_example/etc/manager-apache2.conf
View file @
1efacd1d
...
...
@@ -46,12 +46,12 @@
</
Files
>
# If you want to use mod_fastcgi, replace lines below by:
#FastCgiServer __MANAGERDIR__/manager.fcgi
#FastCgiServer __MANAGER
SITE
DIR__/manager.fcgi
# GLOBAL CONFIGURATION
# --------------------
DocumentRoot
__
MANAGERDIR__
DocumentRoot
__
MANAGER
SITE
DIR__
<
Location
/>
Order
Deny
,
Allow
...
...
_example/etc/manager-nginx.conf
View file @
1efacd1d
server
{
listen
__
PORT__
;
server_name
manager
.
__
DNSDOMAIN__
;
root
__
MANAGERDIR__
;
root
__
MANAGER
SITE
DIR__
;
if
($
uri
!~ ^/(.*\.
psgi
|
static
|
doc
|
fr
-
doc
|
lib
|
javascript
|
favicon
)) {
rewrite
^/(.*)$ /
manager
.
psgi
/$
1
break
;
...
...
_example/etc/portal-apache2.4.conf
View file @
1efacd1d
...
...
@@ -10,8 +10,8 @@
ServerName
auth
.
__
DNSDOMAIN__
# DocumentRoot (FCGI scripts)
DocumentRoot
__
PORTALDIR__
<
Directory
__
PORTALDIR__
>
DocumentRoot
__
PORTAL
SITE
DIR__
<
Directory
__
PORTAL
SITE
DIR__
>
Require
all
granted
Options
+
ExecCGI
+
FollowSymLinks
</
Directory
>
...
...
_example/etc/portal-apache2.X.conf
View file @
1efacd1d
...
...
@@ -10,8 +10,8 @@
ServerName
auth
.
__
DNSDOMAIN__
# DocumentRoot (FCGI scripts)
DocumentRoot
__
PORTALDIR__
<
Directory
__
PORTALDIR__
>
DocumentRoot
__
PORTAL
SITE
DIR__
<
Directory
__
PORTAL
SITE
DIR__
>
<
IfVersion
>=
2
.
3
>
Require
all
granted
</
IfVersion
>
...
...
_example/etc/portal-apache2.conf
View file @
1efacd1d
...
...
@@ -10,8 +10,8 @@
ServerName
auth
.
__
DNSDOMAIN__
# DocumentRoot (FCGI scripts)
DocumentRoot
__
PORTALDIR__
<
Directory
__
PORTALDIR__
>
DocumentRoot
__
PORTAL
SITE
DIR__
<
Directory
__
PORTAL
SITE
DIR__
>
Order
allow
,
deny
Allow
from
all
Options
+
ExecCGI
+
FollowSymLinks
...
...
_example/etc/portal-nginx.conf
View file @
1efacd1d
server
{
listen
__
PORT__
;
server_name
auth
.
__
DNSDOMAIN__
;
root
__
PORTALDIR__
;
root
__
PORTAL
SITE
DIR__
;
if
($
uri
!~ ^/((
static
|
javascript
|
favicon
).*|.*\.
psgi
)) {
rewrite
^/(.*)$ /
index
.
psgi
/$
1
break
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment