Skip to content

Commit

Permalink
Update generate_base.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
yenienserrano committed Dec 18, 2023
1 parent 15b262a commit e08dc9d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dev-tools/build-packages/base/generate_base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ build() {
mkdir -p $tmp_dir
cd $tmp_dir
mkdir -p applications
mkdir -p dashboards
if [[ $app =~ $valid_url ]]; then
if ! curl --output applications/app.zip --silent --fail "${app}"; then
echo "The given URL or Path to the Wazuh Apps is not working: ${app}"
Expand All @@ -83,9 +84,9 @@ build() {
clean 1
else
echo "Extracting Wazuh Dashboard base"
unzip -q wazuh-dashboard.zip -d .
unzip -q wazuh-dashboard.zip -d ./dashboards/
rm wazuh-dashboard.zip
mv $(ls | grep wazuh-dashboard) wazuh-dashboard.tar.gz
mv ./dashboards/$(ls ./dashboards) wazuh-dashboard.tar.gz
fi
else
if ! curl --output wazuh-dashboard.tar.gz --silent --fail "${base}"; then
Expand Down

0 comments on commit e08dc9d

Please sign in to comment.