Skip to content

Commit ac2e10b

Browse files
committed
Add v2 support.
1 parent e0845da commit ac2e10b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.openshift/action_hooks/deploy

+5-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44
# up again. This script gets executed directly, so it could be python, php,
55
# ruby, etc.
66

7-
cartridge_type="python-2.6"
8-
source $OPENSHIFT_HOMEDIR/$cartridge_type/virtenv/bin/activate
7+
if [ -f $OPENSHIFT_HOMEDIR/python-2.6 ]; then
8+
source $OPENSHIFT_HOMEDIR/python-2.6/virtenv/bin/activate
9+
else
10+
source $OPENSHIFT_HOMEDIR/python/virtenv/bin/activate
11+
fi
912

1013
if [ ! -f $OPENSHIFT_DATA_DIR/sqlite3.db ]
1114
then

0 commit comments

Comments
 (0)