Skip to content

Commit

Permalink
Add sed to replacements of config dir path
Browse files Browse the repository at this point in the history
  • Loading branch information
c-bordon committed Apr 13, 2022
1 parent 7160664 commit a91f07e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 95 deletions.
7 changes: 4 additions & 3 deletions stack/dashboard/base/builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@ cp ./etc/custom_welcome/Assets/Favicons/* ./src/core/server/core_app/assets/favi
cp ./etc/custom_welcome/Assets/Favicons/favicon-32x32.png ./src/core/server/core_app/assets/favicons/favicon.ico
cp ./etc/opensearch_dashboards_config.js ./src/core/server/opensearch_dashboards_config.js
cp ./etc/http_service.js ./src/core/server/http/http_service.js
cp ./etc/opensearch-dashboards ./bin/opensearch-dashboards
cp ./etc/opensearch-dashboards-keystore ./bin/opensearch-dashboards-keystore
cp ./etc/opensearch-dashboards-plugin ./bin/opensearch-dashboards-plugin
# Replace config path
sed -i "s'\$DIR/config'/etc/wazuh-dashboard'g" ./bin/opensearch-dashboards
sed -i "s'\$DIR/config'/etc/wazuh-dashboard'g" ./bin/opensearch-dashboards-keystore
sed -i "s'\$DIR/config'/etc/wazuh-dashboard'g" ./bin/opensearch-dashboards-plugin
# Replace the redirection to `home` in the header logo
sed -i "s'/app/home'/app/wazuh'g" ./src/core/target/public/core.entry.js
# Replace others redirections to `home`
Expand Down
34 changes: 0 additions & 34 deletions stack/dashboard/base/files/etc/opensearch-dashboards

This file was deleted.

29 changes: 0 additions & 29 deletions stack/dashboard/base/files/etc/opensearch-dashboards-keystore

This file was deleted.

29 changes: 0 additions & 29 deletions stack/dashboard/base/files/etc/opensearch-dashboards-plugin

This file was deleted.

0 comments on commit a91f07e

Please sign in to comment.