Skip to content

Commit

Permalink
search/replace, revert non-functions
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonEverling committed Feb 14, 2024
1 parent 196b919 commit 703928b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/usr/lib/ocie/include/config/apache
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ fi;
# Test config and print results
# Tomcat sources this script, only print if apache
if [[ ! "${APP_TYPE}" == "tomcat" ]];then
local httpd_cfg=$(ociectl --test);
httpd_cfg=$(ociectl --test);
if [[ ! -z "${httpd_cfg}" ]];then
echo "Ocie: Config: Test FAILED, reverting changes";
echo "Ocie: Config: Result: ${httpd_cfg}";
Expand Down
4 changes: 2 additions & 2 deletions src/usr/lib/ocie/include/config/tomcat
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
. ${OCIE_LIB}/include/config/apache;

# Tomcat specific
local app_proxies="$(echo ${VADC_IP_ADDRESS// /|} | sed 's/\./\\./g' | sed 's|\/|\\/|g')";
app_proxies="$(echo ${VADC_IP_ADDRESS// /|} | sed 's/\./\\./g' | sed 's|\/|\\/|g')";
if [[ -f "${OCIE_HOME}/conf/ocie-tomcat.init" ]];then
reset_config;
fi;
Expand Down Expand Up @@ -38,7 +38,7 @@ tomcat_set_env;
apache_mod_jk;

# Ensure config is valid
local catalina_cfg=$(ociectl --test);
catalina_cfg=$(ociectl --test);
if [[ ! -z "${catalina_cfg}" ]];then
echo "Ocie Config: Tomcat config test FAILED, reverting changes";
echo "Ocie Config: Result: ${catalina_cfg}";
Expand Down
12 changes: 6 additions & 6 deletions src/usr/sbin/ocie
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ function format_args()
echo "${result}";
}

local entries=();
local silent=0;
entries=();
silent=0;

for i in "$@";do
shift
Expand Down Expand Up @@ -102,11 +102,11 @@ done;

. ${OCIE_LIB}/include/utils;

local cmds=$(<<< ${!entries[@]} tr ' ' '\n' | sort);
cmds=$(<<< ${!entries[@]} tr ' ' '\n' | sort);
for key in $cmds;do
local entry="$(echo ${entries[$key]})";
local cmd="$(echo ${entry%% *})";
local params="$(echo ${entry#* })";
entry="$(echo ${entries[$key]})";
cmd="$(echo ${entry%% *})";
params="$(echo ${entry#* })";
if [[ -f "${OCIE_LIB}/${cmd}" ]];then
#print_msg "Ocie: Executing [ ${cmd} ], with arguments: [ ${params} ]";
#. ${OCIE_LIB}/${cmd} ${params} | print_msg
Expand Down

0 comments on commit 703928b

Please sign in to comment.