Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added check to prevent config override if not present #2819

Merged
merged 1 commit into from
Jun 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 27 additions & 12 deletions OracleIdentityGovernance/samples/scripts/agentAutoUpdate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,33 @@ if [ -f "$1"/cacerts ]
-co "$1"/data/conf/config.properties \
-cv "$agentVersion"
else
java \
-DidoConfig.logDir="$1"/data/logs \
-DidoConfig.metricsDir="$1"/newpackage \
-DidoConfig.walletDir="$1"/newpackage \
-DidoConfig.workDir="$1"/newpackage \
-cp idm-agcs-agent-cli-upgrade.jar \
com.oracle.idm.agcs.agent.cli.AgentUpdateMain \
--config "$1"/data/conf/config.json \
ido autoRunUpdate \
-ip "$1" \
-co "$1"/data/conf/config.properties \
-cv "$agentVersion"
if [ -f "$1"/data/conf/config.properties ]
then
java \
-DidoConfig.logDir="$1"/data/logs \
-DidoConfig.metricsDir="$1"/newpackage \
-DidoConfig.walletDir="$1"/newpackage \
-DidoConfig.workDir="$1"/newpackage \
-cp idm-agcs-agent-cli-upgrade.jar \
com.oracle.idm.agcs.agent.cli.AgentUpdateMain \
--config "$1"/data/conf/config.json \
ido autoRunUpdate \
-ip "$1" \
-co "$1"/data/conf/config.properties \
-cv "$agentVersion"
else
java \
-DidoConfig.logDir="$1"/data/logs \
-DidoConfig.metricsDir="$1"/newpackage \
-DidoConfig.walletDir="$1"/newpackage \
-DidoConfig.workDir="$1"/newpackage \
-cp idm-agcs-agent-cli-upgrade.jar \
com.oracle.idm.agcs.agent.cli.AgentUpdateMain \
--config "$1"/data/conf/config.json \
ido autoRunUpdate \
-ip "$1" \
-cv "$agentVersion"
fi
fi

# shellcheck disable=SC2181
Expand Down