Skip to content

Commit

Permalink
fix apache messages
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonEverling committed Feb 2, 2024
1 parent ecce83a commit cf77866
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/usr/lib/ocie/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ else
deploy_local="${APP_HOME}";
deploy_latest="${APP_UPDATE_PATH}/${APP_NAME}";
if [[ "${APP_TYPE}" == "tomcat" ]];then
deploy_local="${deploy_local}/${APP_NAME}.war";
deploy_local="${APP_HOME}/${APP_NAME}.war";
deploy_latest="${APP_UPDATE_PATH}/${APP_NAME}.war";
fi;
echo "Ocie: App Deploy: Deployment type is [ ${APP_TYPE} ]";
Expand Down
8 changes: 4 additions & 4 deletions src/usr/lib/ocie/include/config/apache
Original file line number Diff line number Diff line change
Expand Up @@ -69,23 +69,23 @@ else
echo "Ocie: Config: Rewriting all requests to: [ https ]";
add_default;
fi;
if [[ "${REWRITE_INDEX}" != "" ]];then
if [[ ! "${REWRITE_INDEX}" == "" ]];then
echo "Ocie: Config: Rewriting all requests to: [ ${REWRITE_INDEX} ]";
add_framework;
fi;
if [[ "${REWRITE_CORS}" == 1 ]];then
echo "Ocie: Config: Adding CORS config for JSON to enabled site";
add_cors;
fi;
if [[ "${REWRITE_EXT}" != "" ]];then
if [[ "${REWRITE_INDEX}" != "" ]];then
if [[ ! "${REWRITE_EXT}" == "" ]];then
if [[ ! "${REWRITE_INDEX}" = "" ]];then
echo "Ocie: Config: Cannot configure both [ REWRITE_INDEX ] and [ REWRITE_EXT ], using [ REWRITE_INDEX ], value ${REWRITE_INDEX}";
else
echo "Ocie: Config: Rewriting all requests with the following extensions: [ ${REWRITE_EXT} ]";
add_extension;
fi;
fi;
if [[ "${REWRITE_EXCLUDE}" != "" ]];then
if [[ ! "${REWRITE_EXCLUDE}" == "" ]];then
echo "Ocie: Config: Ecluding the following pattern from rewrite: [ ${REWRITE_EXCLUDE} ]";
add_exclude;
fi;
Expand Down
10 changes: 5 additions & 5 deletions src/usr/lib/ocie/include/utils
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ function get_signature()
fi;
if [[ ! "${option}" == "sha1" ]] && [[ ! "${option}" == "sha256" ]];then
option='sha1';
if [[ -d "${object}" ]];then
echo "$(find ${object} -type f -print0 | xargs -0 sha1sum | sort | sha1sum | cut -f1 -d' ')";
else
echo "$(${option}sum ${object} | cut -f1 -d' ')";
fi;
fi;
if [[ -d "${object}" ]];then
echo "$(find ${object} -type f -print0 | xargs -0 sha1sum | sort | sha1sum | cut -f1 -d' ')";
elif [[ -f "${object}" ]];then
echo "$(${option}sum ${object} | cut -f1 -d' ')";
else
echo "0";
fi;
Expand Down

0 comments on commit cf77866

Please sign in to comment.