Skip to content

Commit

Permalink
remove old server configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mmouly committed Dec 3, 2024
1 parent fc066bf commit d99737e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 32 deletions.
23 changes: 2 additions & 21 deletions decisioncenter/script/updateDCConfigurations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,8 @@

echo "Update Decision Center configurations"

FIND_SERVER_EXT_CLASS="$($SCRIPT/findServerExtClass.sh)"
echo "FIND_SERVER_EXT_CLASS set to $FIND_SERVER_EXT_CLASS"

FIND_OAUTH_SERVER_UTIL_CLASS="$($SCRIPT/findOAuthServerUtilClass.sh)"
echo "FIND_OAUTH_SERVER_UTIL_CLASS set to $FIND_OAUTH_SERVER_UTIL_CLASS"

if [ "$FIND_SERVER_EXT_CLASS" == "matches" ]
then
echo "ServerExt class found then set DC_SERVER_CONFIG to /config/server-configurations.json"
DC_SERVER_CONFIG="/config/server-configurations.json"
else
echo "ServerExt class not found. Use old way Decision Center server configuration"
fi

if [ "$FIND_OAUTH_SERVER_UTIL_CLASS" == "matches" ]
then
echo "OAuthServerUtil class found replace /config/server-configurations.json by /config/new-server-configurations.json"
mv /config/new-server-configurations.json /config/server-configurations.json
else
echo "OAuthServerUtil class not found"
fi
DC_SERVER_CONFIG="/config/server-configurations.json"
mv /config/new-server-configurations.json /config/server-configurations.json

if [ -n "$OPENID_CONFIG" ]
then
Expand Down
12 changes: 1 addition & 11 deletions standalone/script/runserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,7 @@ if [ ! -f /config/initialized.flag ] ; then
touch /config/initialized.flag
fi;

FIND_SERVER_EXT_CLASS="$($SCRIPT/findServerExtClass.sh)"
echo "FIND_SERVER_EXT_CLASS set to $FIND_SERVER_EXT_CLASS"

if [ "$FIND_SERVER_EXT_CLASS" == "matches" ]
then
echo "ServerExt class found. Use /config/server-configurations.json server definition"
cp /config/new-decisioncenter-configuration.properties $APPS/decisioncenter.war/WEB-INF/classes/config/decisioncenter-configuration.properties
else
echo "ServerExt class not found. Use old decisioncenter-configuration.properties server definition"
cp /config/decisioncenter-configuration.properties $APPS/decisioncenter.war/WEB-INF/classes/config/decisioncenter-configuration.properties
fi
cp /config/new-decisioncenter-configuration.properties $APPS/decisioncenter.war/WEB-INF/classes/config/decisioncenter-configuration.properties

if [ -n "$RELEASE_NAME" ]
then
Expand Down

0 comments on commit d99737e

Please sign in to comment.