INN commit: trunk/scripts (innshellvars.tcl.in)
INN Commit
Russ_Allbery at isc.org
Mon Dec 15 20:57:54 UTC 2008
Date: Monday, December 15, 2008 @ 12:57:53
Author: iulius
Revision: 8239
Add $inn_db_home and $inn_syslog_facility.
Set umask.
close #10
Modified:
trunk/scripts/innshellvars.tcl.in
---------------------+
innshellvars.tcl.in | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
Modified: innshellvars.tcl.in
===================================================================
--- innshellvars.tcl.in 2008-12-14 18:35:46 UTC (rev 8238)
+++ innshellvars.tcl.in 2008-12-15 20:57:53 UTC (rev 8239)
@@ -6,7 +6,7 @@
# File: innshellvars.tcl
# RCSId: $Id$
# Description: Set up any and all variables that an INN tcl script
-# might need.
+# might need. Also sets umask.
set prefix "@prefix@"
set exec_prefix "@exec_prefix@"
@@ -95,6 +95,11 @@
set inn_log_compress "@LOG_COMPRESS@"
set inn_z "@LOG_COMPRESSEXT@"
+if { $inn_ovmethod == "ovdb" } {
+ set inn_db_home "${inn_pathoverview}"
+ set env(DB_HOME) "${inn_db_home}"
+}
+
set inn_tempsock [ eval exec basename ${inn_innddir}/ctlinndXXXXXX | $inn_sed -e {s/XXXXXX$/*/} ]
set inn_tempsockdir [ exec echo ${inn_innddir}/ctlinndXXXXXX | $inn_sed -e {s@/[^/]*$@@} ]
@@ -117,7 +122,10 @@
set env(NEWSLBIN) "$inn_newslbin"
scan "@NEWSUMASK@" "%o" inn_umask
+umask @NEWSUMASK@
+set inn_syslog_facility [ exec echo [string tolower "@SYSLOG_FACILITY@"] | $inn_sed -e {s/log_//} ]
+
set inn_path "$inn_newslbin:$inn_newsbin:$env(PATH):/bin:/usr/bin"
set env(PATH) "$inn_path"
More information about the inn-committers
mailing list