Remove admin_privileges option

This commit is contained in:
vcerenu
2022-04-08 16:17:10 -03:00
parent 5f078b6d29
commit a4bd34e202
3 changed files with 4 additions and 8 deletions
-2
View File
@@ -82,8 +82,6 @@ WAZUH_MONITORING_ENABLED=true # Custom settings to enable/disable wazuh-mo
WAZUH_MONITORING_FREQUENCY=900 # Custom setting to set the frequency for wazuh-monitoring indices cron task WAZUH_MONITORING_FREQUENCY=900 # Custom setting to set the frequency for wazuh-monitoring indices cron task
WAZUH_MONITORING_SHARDS=2 # Configure wazuh-monitoring-* indices shards and replicas WAZUH_MONITORING_SHARDS=2 # Configure wazuh-monitoring-* indices shards and replicas
WAZUH_MONITORING_REPLICAS=0 # WAZUH_MONITORING_REPLICAS=0 #
ADMIN_PRIVILEGES=true # App privileges
``` ```
## Directory structure ## Directory structure
@@ -78,8 +78,7 @@ ENV PATTERN="" \
WAZUH_MONITORING_ENABLED="" \ WAZUH_MONITORING_ENABLED="" \
WAZUH_MONITORING_FREQUENCY="" \ WAZUH_MONITORING_FREQUENCY="" \
WAZUH_MONITORING_SHARDS="" \ WAZUH_MONITORING_SHARDS="" \
WAZUH_MONITORING_REPLICAS="" \ WAZUH_MONITORING_REPLICAS=""
ADMIN_PRIVILEGES=""
# Create wazuh-dashboard user and group # Create wazuh-dashboard user and group
RUN getent group $GROUP || groupadd -r -g 1000 $GROUP RUN getent group $GROUP || groupadd -r -g 1000 $GROUP
@@ -36,7 +36,6 @@ declare -A CONFIG_MAP=(
[wazuh.monitoring.frequency]=$WAZUH_MONITORING_FREQUENCY [wazuh.monitoring.frequency]=$WAZUH_MONITORING_FREQUENCY
[wazuh.monitoring.shards]=$WAZUH_MONITORING_SHARDS [wazuh.monitoring.shards]=$WAZUH_MONITORING_SHARDS
[wazuh.monitoring.replicas]=$WAZUH_MONITORING_REPLICAS [wazuh.monitoring.replicas]=$WAZUH_MONITORING_REPLICAS
[admin]=$ADMIN_PRIVILEGES
) )
for i in "${!CONFIG_MAP[@]}" for i in "${!CONFIG_MAP[@]}"