Skip to content

Commit

Permalink
enable audit
Browse files Browse the repository at this point in the history
  • Loading branch information
mmouly committed Aug 20, 2024
1 parent 4c11d64 commit 3aacfd6
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 2 deletions.
1 change: 1 addition & 0 deletions decisioncenter/config/featureManager.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
<feature>monitor-1.0</feature>
<feature>mpMetrics-3.0</feature>
<feature>logstashCollector-1.0</feature>
<feature>audit-1.0</feature>
</featureManager>
</server>
8 changes: 8 additions & 0 deletions decisioncenter/script/updateDCConfigurations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -583,3 +583,11 @@ then
echo "Disable dbdump application"
rm -rf /config/apps/teamserver-dbdump.war
fi

if [ -n "$ENABLE_AUDIT" ]
then
echo "audit is enabled"
else
echo "audit is disabled"
sed -i '/audit/d' /config/featureManager.xml
fi
1 change: 1 addition & 0 deletions decisionserver/decisionrunner/config/featureManager.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
<feature>monitor-1.0</feature>
<feature>mpMetrics-3.0</feature>
<feature>logstashCollector-1.0</feature>
<feature>audit-1.0</feature>
</featureManager>
</server>
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,11 @@ else
sed -i '/logstashCollector/d' /config/server.xml
sed -i '/logstashCollector/d' /config/featureManager.xml
fi

if [ -n "$ENABLE_AUDIT" ]
then
echo "audit is enabled"
else
echo "audit is disabled"
sed -i '/audit/d' /config/featureManager.xml
fi
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
<feature>monitor-1.0</feature>
<feature>mpMetrics-3.0</feature>
<feature>logstashCollector-1.0</feature>
<feature>audit-1.0</feature>
</featureManager>
</server>
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,11 @@ else
sed -i '/logstashCollector/d' /config/server.xml
sed -i '/logstashCollector/d' /config/featureManager.xml
fi

if [ -n "$ENABLE_AUDIT" ]
then
echo "audit is enabled"
else
echo "audit is disabled"
sed -i '/audit/d' /config/featureManager.xml
fi
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
<feature>jdbc-4.1</feature>
<feature>ldapRegistry-3.0</feature>
<feature>openidConnectClient-1.0</feature>
<feature>transportSecurity-1.0</feature>
<feature>transportSecurity-1.0</feature>
<feature>monitor-1.0</feature>
<feature>mpMetrics-3.0</feature>
<feature>mpMetrics-3.0</feature>
<feature>logstashCollector-1.0</feature>
<feature>audit-1.0</feature>
</featureManager>
</server>
Original file line number Diff line number Diff line change
Expand Up @@ -230,3 +230,11 @@ else
sed -i '/logstashCollector/d' /config/server.xml
sed -i '/logstashCollector/d' /config/featureManager.xml
fi

if [ -n "$ENABLE_AUDIT" ]
then
echo "audit is enabled"
else
echo "audit is disabled"
sed -i '/audit/d' /config/featureManager.xml
fi

0 comments on commit 3aacfd6

Please sign in to comment.