Skip to content

Commit

Permalink
use /usr/local/share on macOS
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Kolberg <[email protected]>
  • Loading branch information
amdprophet committed Oct 23, 2024
1 parent 436425c commit 08cb85e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions assets/productbuild/uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ collector_files=(
"/etc/otelcol-sumo/opamp.d"
"/usr/local/bin/otelcol-config"
"/usr/local/bin/otelcol-sumo"
"/usr/share/otelcol-sumo/otelcol-sumo.sh"
"/usr/share/otelcol-sumo"
"/usr/local/share/otelcol-sumo"
"/usr/local/share/otelcol-sumo/otelcol-sumo.sh"
"/var/lib/otelcol-sumo/file_storage"
"/var/lib/otelcol-sumo"
"/var/log/otelcol-sumo"
Expand Down
2 changes: 1 addition & 1 deletion assets/services/launchd/com.sumologic.otelcol-sumo.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<string>otelcol-sumo</string>
<key>ProgramArguments</key>
<array>
<string>/usr/share/otelcol-sumo.sh</string>
<string>/usr/local/share/otelcol-sumo.sh</string>
</array>
<key>EnvironmentVariables</key>
<dict>
Expand Down
6 changes: 3 additions & 3 deletions ci/verify_installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ system_files=(
"usr"
"usr/local"
"usr/local/bin"
"usr/share"
"usr/local/share"
"var"
"var/lib"
"var/log"
Expand All @@ -60,8 +60,8 @@ expected_collector_files=(
"Library/LaunchDaemons/com.sumologic.otelcol-sumo.plist"
"usr/local/bin/otelcol-config"
"usr/local/bin/otelcol-sumo"
"usr/share/otelcol-sumo"
"usr/share/otelcol-sumo/otelcol-sumo.sh"
"usr/local/share/otelcol-sumo"
"usr/local/share/otelcol-sumo/otelcol-sumo.sh"
"var/lib/otelcol-sumo"
"var/lib/otelcol-sumo/file_storage"
"var/log/otelcol-sumo"
Expand Down
3 changes: 3 additions & 0 deletions settings/otc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ macro(set_otc_settings)
set(OTC_SYSTEMD_DIR "lib/systemd/system")
set(OTC_LOG_DIR "var/log/otelcol-sumo")
set(OTC_SHARE_DIR "usr/share/otelcol-sumo")
if("${goos}" STREQUAL "darwin")
set(OTC_SHARE_DIR "usr/local/share/otelcol-sumo")
endif()

# File paths
set(OTC_BIN_PATH "${OTC_BIN_DIR}/${OTC_BINARY}")
Expand Down

0 comments on commit 08cb85e

Please sign in to comment.