Skip to content

Commit

Permalink
fix(releasing): Fix install.sh handling of new directory structure on…
Browse files Browse the repository at this point in the history
… MacOS (#21403)

`etc/` doesn't exist in the MacOS packages. In the Linux packages it houses the SystemD files.

Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>
  • Loading branch information
jszwedko authored Oct 4, 2024
1 parent 42b0d3e commit 3eecbe7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion distribution/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@ install_from_archive() {
ensure tar -xzf "$_file" --directory="$_unpack_dir" --strip-components=2
# copy all files (including hidden), ref: https://askubuntu.com/a/86891
ensure cp -r "$_unpack_dir/bin/." "$prefix/bin"
ensure cp -r "$_unpack_dir/etc/." "$prefix/etc"
if [ -d "$_unpack_dir/etc/." ]; then
ensure cp -r "$_unpack_dir/etc/." "$prefix/etc"
fi
ensure mkdir -p "$prefix/share/vector/config"
ensure cp -r "$_unpack_dir/config/." "$prefix/share/vector/config"
ensure cp "$_unpack_dir"/README.md "$prefix/share/vector/"
Expand Down

0 comments on commit 3eecbe7

Please sign in to comment.