File tree Expand file tree Collapse file tree 5 files changed +11
-9
lines changed Expand file tree Collapse file tree 5 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ install.opt: install.META.opt install.files
6868# BB If install is not run by root but OCSIGENUSER, OCSIGENGROUP is somebody
6969# BB different, make files universally accessible, we cannot chown.
7070INSTALL_CAN_PUT_PERMISSIONS =yes
71- INSTALL_USER_GROUP =-o $(OCSIGENUSER ) -g $(OCSIGENGROUP )
71+ INSTALL_USER_GROUP =-o $(OCSIGENUSER ) -g " $(OCSIGENGROUP ) "
7272INSTALL_MOD_660 =660
7373INSTALL_MOD_644 =644
7474INSTALL_MOD_755 =755
@@ -99,7 +99,7 @@ install.files:
9999 [ -p $( TEMPROOT) $( COMMANDPIPE) ] || \
100100 { mkfifo -m ${INSTALL_MOD_660} $( TEMPROOT) $( COMMANDPIPE) ; \
101101 if [ " ${INSTALL_CAN_PUT_PERMISSIONS} " = yes ]; \
102- then $(CHOWN ) -R $(OCSIGENUSER ) :$(OCSIGENGROUP ) $(TEMPROOT )$(COMMANDPIPE ) ; \
102+ then $(CHOWN ) -R $(OCSIGENUSER ) :" $( OCSIGENGROUP) " $(TEMPROOT )$(COMMANDPIPE ) ; \
103103 fi ; }
104104 # # Configuration files
105105 $(INSTALL ) -m ${INSTALL_MOD_755} -d $(TEMPROOT )$(CONFIGDIR ) /conf.d
@@ -162,7 +162,7 @@ logrotate:
162162 cat src/files/logrotate.in \
163163 | sed s%LOGDIR%$(LOGDIR ) %g \
164164 | sed s%USER%$(OCSIGENUSER ) %g \
165- | sed s%GROUP%$(OCSIGENGROUP ) %g \
165+ | sed s%GROUP%" $( OCSIGENGROUP) " %g \
166166 | sed s%_COMMANDPIPE_%$(COMMANDPIPE ) %g \
167167 > $(TEMPROOT ) /etc/logrotate.d/$(PROJECTNAME )
168168
Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ configuration file before {{{ Eliom }}}).
1313There are currently two implementations of {{{ Ocsipersist }}}:
1414{{{ ocsipersist-dbm.cma }}} (uses the DBM database);
1515{{{ ocsipersist-sqlite.cma }}} (uses the SQLite database
16- and depends on {{{ sqlite3.cma }}});
16+ and depends on {{{ sqlite3.cma }}} from the OPAM package sqlite3 );
1717{{{ ocsipersist-pgsql.cma }}} (uses the PostgreSQL (version >= 9.5)
18- database and depends on {{{ pa_pgsql.cma }}});
18+ database and depends on {{{ pa_pgsql.cma }}} from the OPAM package pgocaml );
1919>>
2020
2121It is possible to customize the location of the database on the
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ confs: ../$(PROJECTNAME).conf.sample ../local/etc/${PROJECTNAME}.conf
5151 | sed s%_LOGDIR_%$(LOGDIR ) %g \
5252 | sed s%_DATADIR_%$(DATADIR ) %g \
5353 | sed s%_OCSIGENUSER_%$(OCSIGENUSER ) %g \
54- | sed s%_OCSIGENGROUP_%$(OCSIGENGROUP ) %g \
54+ | sed s%_OCSIGENGROUP_%" $( OCSIGENGROUP) " %g \
5555 | sed s%_COMMANDPIPE_%$(COMMANDPIPE ) %g \
5656 | sed s%_MIMEFILE_%$(CONFIGDIR ) /mime.types%g \
5757 | sed s%_METADIR_%$(LIBDIR ) %g \
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ ocsigen_config.ml: ocsigen_config.ml.in ../../Makefile.config ../../Makefile.opt
7373 | sed s%_STATICPAGESDIR_%$(STATICPAGESDIR ) % \
7474 | sed s%_UP_%$(UPLOADDIR ) %g \
7575 | sed s%_OCSIGENUSER_%$(OCSIGENUSER ) %g \
76- | sed s%_OCSIGENGROUP_%$(OCSIGENGROUP ) %g \
76+ | sed s%_OCSIGENGROUP_%" $( OCSIGENGROUP) " %g \
7777 | sed s%_PROJECTNAME_%$(PROJECTNAME ) %g \
7878 | sed s%_COMMANDPIPE_%$(COMMANDPIPE ) %g \
7979 | sed s%_CONFIGDIR_%$(CONFIGDIR ) % \
Original file line number Diff line number Diff line change @@ -42,8 +42,10 @@ let make_sockets addr port =
4242 let ipv6_socket =
4343 try [make_ipv6_socket Unix. inet6_addr_any port]
4444 with Unix. Unix_error
45- ((Unix. EAFNOSUPPORT | Unix. EPROTONOSUPPORT ),
46- _, _) -> []
45+ ((Unix. EAFNOSUPPORT
46+ | Unix. EPROTONOSUPPORT
47+ | Unix. EADDRINUSE (* GH issue #104 *)
48+ ), _, _) -> []
4749 in
4850 (make_ipv4_socket Unix. inet_addr_any port)::ipv6_socket
4951 | IPv4 addr ->
You can’t perform that action at this time.
0 commit comments