Skip to content

Commit

Permalink
Ensure files get placed in correct locations
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan Myers authored and Dylan-M committed May 18, 2024
1 parent d8bdfe4 commit 343aa31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ nfpms:
# This file will be unused if/until nfpm & goreleaser get updated to support AIX rpm files
# The postinstall.sh file removes this on Linux
- src: service/observiq-otel-collector.aix.env
dst: /opt/observiq-otel-collector/observiq-otel-collector.aix.env
dst: /etc/observiq-otel-collector.aix.env
type: config
file_info:
mode: 0644
Expand Down
4 changes: 2 additions & 2 deletions scripts/install/install_unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -787,8 +787,8 @@ install_aix()
zcat "$out_file_path" | tar -Uxvf - -C /opt/observiq-otel-collector > /dev/null 2>&1

# Move files to appropriate locations
mv /opt/observiq-otel-collector/opentelemetry-java-contrib-jmx-metrics.jar /opt/opentelemetry-java-contrib-jmx-metrics.jar > /dev/null 2>&1
mv /opt/observiq-otel-collector/install/observiq-otel-collector.aix.env /etc/observiq-otel-collector.aix.env > /dev/null 2>&1
mv /opt/observiq-otel-collector/opentelemetry-java-contrib-jmx-metrics.jar /opt/ > /dev/null 2>&1
mv /opt/observiq-otel-collector/install/observiq-otel-collector.aix.env /etc/ > /dev/null 2>&1

# Set ownership
chown -R "$COLLECTOR_USER":"$COLLECTOR_USER" /opt/observiq-otel-collector > /dev/null 2>&1
Expand Down

0 comments on commit 343aa31

Please sign in to comment.