Skip to content

Commit

Permalink
Added APP defaultRoute replace to new wz-home
Browse files Browse the repository at this point in the history
  • Loading branch information
rauldpm authored and damarisg committed Nov 2, 2023
1 parent 3afd05e commit c666317
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stack/dashboard/deb/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ case "$1" in
runuser "${NAME}" --shell="/bin/bash" --command="echo kibanaserver | ${INSTALLATION_DIR}/bin/opensearch-dashboards-keystore add opensearch.password --stdin" > /dev/null 2>&1
chmod 640 "${CONFIG_DIR}"/opensearch_dashboards.keystore
fi

if ! grep -q "/app/wz-home" "${CONFIG_DIR}"/opensearch_dashboards.yml; then
sed -i 's/\/app\/wazuh/\/app\/wz-home/g' "${CONFIG_DIR}"/opensearch_dashboards.yml
fi
;;


Expand Down
4 changes: 4 additions & 0 deletions stack/dashboard/rpm/wazuh-dashboard.spec
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ elif [ ! -f %{CONFIG_DIR}/opensearch_dashboards.keystore ]; then
chmod 640 "%{CONFIG_DIR}"/opensearch_dashboards.keystore
fi

if ! grep -q "/app/wz-home" %{CONFIG_DIR}/opensearch_dashboards.yml; then
sed -i 's/\/app\/wazuh/\/app\/wz-home/g' %{CONFIG_DIR}/opensearch_dashboards.yml
fi

if [ -f %{INSTALL_DIR}/wazuh-dashboard.restart ]; then
rm -f %{INSTALL_DIR}/wazuh-dashboard.restart
if command -v systemctl > /dev/null 2>&1 && systemctl > /dev/null 2>&1; then
Expand Down

0 comments on commit c666317

Please sign in to comment.