Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
remove omsagent.conf validation
Browse files Browse the repository at this point in the history
  • Loading branch information
NarineM committed Oct 31, 2017
1 parent 8c8259c commit dd0d585
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions installer/scripts/service_control
Original file line number Diff line number Diff line change
Expand Up @@ -148,25 +148,17 @@ should_check_omsadmin_conf()

setup_variables()
{

local initial_conf_dir=
if [ -z "$1" ]; then
initial_conf_dir="$ETC_DIR/conf/omsadmin.conf"
else
initial_conf_dir="$ETC_DIR/$1/conf/omsadmin.conf"
fi

WS_STATUS=0
should_check_omsadmin_conf $1
if [ $? -eq 0 ]; then
check_omsadmin_conf $initial_conf_dir
WS_STATUS=$?
fi
if [ "$WS_STATUS" -eq "0" ]; then
. $initial_conf_dir
WS_STATUS=$?
fi

WS_STATUS=0
. $initial_conf_dir
WS_STATUS=$?

if [ "$WS_STATUS" -eq "0" ]; then

VAR_DIR_WS=$VAR_DIR/$WORKSPACE_ID
Expand Down

0 comments on commit dd0d585

Please sign in to comment.