Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
ebf0d111
Commit
ebf0d111
authored
Sep 27, 2002
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for Collector 586. Generated 'start' scripts had a nonsensical
export of an "INST_HOME" environment variable.
parent
12f9f634
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
inst/make_start.py
inst/make_start.py
+3
-10
No files found.
inst/make_start.py
View file @
ebf0d111
...
...
@@ -14,19 +14,13 @@
import
sys
,
os
from
do
import
*
# Using PYTHONHOME is bad under Python 2.0
if
sys
.
version
[:
1
]
==
'2'
:
varname
=
'INST_HOME'
else
:
varname
=
'PYTHONHOME'
def
sh
(
home
,
user
,
group
):
start
=
os
.
path
.
join
(
home
,
'start'
)
if
not
os
.
path
.
exists
(
start
):
print
'-'
*
78
print
'Creating start script, start'
f
=
open
(
start
,
'w'
)
f
.
write
(
START_SCRIPT
%
(
varname
,
varname
,
sys
.
executable
,
varname
)
)
f
.
write
(
START_SCRIPT
%
sys
.
executable
)
ch
(
start
,
user
,
group
,
0711
)
f
.
close
()
...
...
@@ -42,6 +36,7 @@ def sh(home, user, group):
START_SCRIPT
=
"""#!/bin/sh
umask 077
reldir=`dirname $0`
cwd=`cd $reldir; pwd`
# Zope's event logger is controlled by the "EVENT_LOG_FILE" environment
# variable. If you don't have a "EVENT_LOG_FILE" environment variable
# (or its older alias "STUPID_LOG_FILE") set, Zope will log to the standard
...
...
@@ -54,9 +49,7 @@ if [ -z "$ZLOGFILE" ]; then
EVENT_LOG_FILE=""
export EVENT_LOG_FILE
fi
%s=`cd $reldir; pwd`
export %s
exec %s $%s/z2.py -D "$@"
exec %s $cwd/z2.py -D "$@"
"""
STOP_SCRIPT
=
"#! /bin/sh
\
n
kill `cat %s`
\
n
"
Write
Preview
Markdown
is supported
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