Skip to content

Commit

Permalink
Add debug information
Browse files Browse the repository at this point in the history
  • Loading branch information
Tostti committed Apr 16, 2024
1 parent aa2d0db commit 4f87247
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dev-tools/build-packages/base/generate_base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,21 @@ build() {
clean 1
else
echo "Extracting Wazuh Dashboard base"
echo "a"
ls -l .
unzip -q wazuh-dashboard.zip -d ./dashboards/
rm wazuh-dashboard.zip
mv ./dashboards/$(ls ./dashboards) wazuh-dashboard.tar.gz
echo "B"
ls -l .
fi
else
if ! curl --output wazuh-dashboard.tar.gz --silent --fail "${base}"; then
echo "The given URL or Path to the Wazuh Dashboard base is not working: ${base}"
clean 1
fi
echo "D"
ls -l .
fi
else
echo "The given URL or Path to the Wazuh Dashboard base is not valid: ${base}"
Expand All @@ -117,9 +123,12 @@ build() {
clean 1
fi

echo "c"
ls -l
tar -zxf wazuh-dashboard.tar.gz
directory_name=$(tar tf wazuh-dashboard.tar.gz | head -1 | sed 's#/.*##' | sort -u)
working_dir="wazuh-dashboard-$version-$revision-linux-x64"
echo $directory_name $working_dir
mv $directory_name $working_dir
cd $working_dir

Expand Down

0 comments on commit 4f87247

Please sign in to comment.