Skip to content
This repository was archived by the owner on Aug 29, 2018. It is now read-only.

Commit 53619d5

Browse files
committed
Fix pip cache directory permission denied
For Python 2.7, a new version of PIP (7.1.0) attemps to write into .cache directory in gear's home directory which will cause permission denied error. Users do not have permission to create files or folders in gear's home directory. The .cache directory needs to be created during the installation process. As a result, a piece of code is added to "install" script to create .cache dir before pip install step happens to address the issue. Bug 1361755 Link https://bugzilla.redhat.com/show_bug.cgi?id=1361755 Signed-off-by: Vu Dinh <[email protected]>
1 parent 1e18caf commit 53619d5

File tree

1 file changed

+1
-0
lines changed
  • cartridges/openshift-origin-cartridge-python/bin

1 file changed

+1
-0
lines changed

cartridges/openshift-origin-cartridge-python/bin/install

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ esac
1010
echo "$version" > ${OPENSHIFT_PYTHON_DIR}env/OPENSHIFT_PYTHON_VERSION
1111

1212
mkdir -p ${OPENSHIFT_PYTHON_DIR}template
13+
mkdir $OPENSHIFT_HOMEDIR/.cache
1314

1415
# Call the version specific install script
1516
exec ${OPENSHIFT_PYTHON_DIR}usr/versions/${version}/bin/install $version

0 commit comments

Comments
 (0)