Commit 5dfd8ab0 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

revise to support both zope-2.8 and zope-2.7.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14134 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a44804ee
...@@ -10,6 +10,10 @@ export PYTHONPATH INSTANCE_HOME SOFTWARE_HOME ...@@ -10,6 +10,10 @@ export PYTHONPATH INSTANCE_HOME SOFTWARE_HOME
export erp5_load_data_fs="1" export erp5_load_data_fs="1"
ZOPE_RUN="$SOFTWARE_HOME/Zope/Startup/run.py" if [ -f "$SOFTWARE_HOME/Zope2/Startup/run.py" ]; then
ZOPE_RUN="$SOFTWARE_HOME/Zope2/Startup/run.py"
else
ZOPE_RUN="$SOFTWARE_HOME/Zope/Startup/run.py"
fi
exec "$PYTHON" "$ZOPE_RUN" -C "$CONFIG_FILE" "$@" exec "$PYTHON" "$ZOPE_RUN" -C "$CONFIG_FILE" "$@"
...@@ -10,6 +10,10 @@ export PYTHONPATH INSTANCE_HOME SOFTWARE_HOME ...@@ -10,6 +10,10 @@ export PYTHONPATH INSTANCE_HOME SOFTWARE_HOME
export erp5_load_data_fs="1" export erp5_load_data_fs="1"
ZDCTL="$SOFTWARE_HOME/Zope/Startup/zopectl.py" if [ -f "$SOFTWARE_HOME/Zope2/Startup/zopectl.py" ]; then
ZDCTL="$SOFTWARE_HOME/Zope2/Startup/zopectl.py"
else
ZDCTL="$SOFTWARE_HOME/Zope/Startup/zopectl.py"
fi
exec "$PYTHON" "$ZDCTL" -C "$CONFIG_FILE" "$@" exec "$PYTHON" "$ZDCTL" -C "$CONFIG_FILE" "$@"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment