In my DIY Java I have this in my action_hooks start shell
cd $OPENSHIFT_DATA_DIR
export JAVA_HOME=/etc/alternatives/java_sdk_1.8.0
export PATH=$JAVA_HOME/bin:$PATH
libs="libs"
export LIB=$OPENSHIFT_REPO_DIR$libs
src="src"
export JAVA_FILES=$OPENSHIFT_REPO_DIR$src
export MATCHFACES=$OPENSHIFT_REPO_DIR$src/matchfaces
cd $OPENSHIFT_REPO_DIR
if [[ -z "$OPENSHIFT_INTERNAL_IP" ]]; then export OPENSHIFT_INTERNAL_IP="$OPENSHIFT_DIY_IP"; fi
if [[ -z "$OPENSHIFT_INTERNAL_PORT" ]]; then export OPENSHIFT_INTERNAL_PORT="$OPENSHIFT_DIY_PORT"; fi
nohup dir $LIB > ${OPENSHIFT_DIY_LOG_DIR}/output1.log 2>&1 &
nohup javac -classpath .;$LIB/JavaBridge.jar;$LIB/FaceSDK.jar;$LIB/jna.jar $MATCHFACES/*.java > ${OPENSHIFT_DIY_LOG_DIR}/compile.log 2>&1 &
nohup java -classpath .;$LIB/JavaBridge.jar;$LIB/FaceSDK.jar;$LIB/jna.jar $MATCHFACES/Listener > ${OPENSHIFT_DIY_LOG_DIR}/Listener.log 2>&1 &
but the code above gives me pemission denied error. from the shell above, I am trying to access a libs folder I uploaded to my repository that conatins the external dependencies my java application needs. Can anyone explain why and how to get rid of that error.
The error s below
remote: /var/lib/openshift/586b985a89f5cfe9fa0000bc/app-root/runtime/repo//.openshift/action_hooks/start: line 32: /var/lib/openshift/586b985a89f5cfe9fa0000bc/app-root/runtime/repo/libs/JavaBridge.jar: Permission denied remote: /var/lib/openshift/586b985a89f5cfe9fa0000bc/app-root/runtime/repo//.openshift/action_hooks/start: line 32: /var/lib/openshift/586b985a89f5cfe9fa0000bc/app-root/runtime/repo/libs/FaceSDK.jar: Permission denied