Skip to content

Commit 7d3120a

Browse files
committed
Fix missing 2.0.0 changes for building releases
1 parent 85fc464 commit 7d3120a

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

buildscripts/download-dependencies.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ curl -fL -o "$DOWNLOAD_DIR/opentelemetry-java-contrib-jmx-metrics.jar" \
3232
# download contrib repo and manually build supervisor repos
3333
echo "Cloning supervisor repo"
3434
SUPERVISOR_REPO="https://github.com/open-telemetry/opentelemetry-collector-contrib.git"
35-
PLATFORMS=("linux/amd64" "linux/arm64" "linux/arm" "linux/ppc64" "linux/ppc64le" "darwin/amd64" "darwin/arm64" "windows/amd64")
35+
PLATFORMS=("aix/ppc64" "linux/amd64" "linux/arm64" "linux/arm" "linux/ppc64" "linux/ppc64le" "darwin/amd64" "darwin/arm64" "windows/amd64")
3636

3737
mkdir "$DOWNLOAD_DIR/supervisor_bin"
3838
$(cd $DOWNLOAD_DIR && git clone --depth 1 "$SUPERVISOR_REPO")

scripts/install/install_unix.sh

+8-8
Original file line numberDiff line numberDiff line change
@@ -800,16 +800,16 @@ install_package() {
800800
if lssrc -s bindplane-otel-collector > /dev/null 2>&1; then
801801
rmssys -s bindplane-otel-collector
802802
else
803-
mkssys -s bindplane-otel-collector -p /opt/bindplane-otel-collector/bindplane-otel-collector -u "$(id -u bindplane-otel-collector)" -S -n15 -f9 -a '--config config.yaml --manager manager.yaml --logging logging.yaml'
803+
mkssys -s bindplane-otel-collector -p /opt/bindplane-otel-collector/opampsupervisor -u "$(id -u bindplane-otel-collector)" -S -n15 -f9 -a '--config supervisor.yaml'
804804
fi
805805

806806
# Install the service to start on boot
807807
# Removing it if it exists, in order to have the most recent version
808-
if lsitab oiqcollector > /dev/null 2>&1; then
809-
rmitab oiqcollector
808+
if lsitab bpcollector > /dev/null 2>&1; then
809+
rmitab bpcollector
810810
else
811811
# shellcheck disable=SC2016
812-
mkitab 'oiqcollector:23456789:respawn:startsrc -s bindplane-otel-collector -a start -e "$(cat /etc/bindplane-otel-collector.aix.env)"'
812+
mkitab 'bpcollector:23456789:respawn:startsrc -s bindplane-otel-collector -a start -e "$(cat /etc/bindplane-otel-collector.aix.env)"'
813813
fi
814814

815815
# Start the service with the proper environment variables
@@ -838,7 +838,7 @@ install_aix()
838838
mkdir -p /opt/bindplane-otel-collector/storage > /dev/null 2>&1
839839

840840
# Extract
841-
zcat "$out_file_path" | tar -Uxvf - -C /opt/bindplane-otel-collector > /dev/null 2>&1
841+
gunzip -c "$out_file_path" | tar -Uxvf - -C /opt/bindplane-otel-collector > /dev/null 2>&1
842842

843843
# Move files to appropriate locations
844844
mv /opt/bindplane-otel-collector/opentelemetry-java-contrib-jmx-metrics.jar /opt/ > /dev/null 2>&1
@@ -937,7 +937,7 @@ display_results() {
937937
info "Supervisor Stop Command: $(fg_cyan "sudo service bindplane-otel-collector stop")$(reset)"
938938
info "Supervisor Status Command: $(fg_cyan "sudo service bindplane-otel-collector status")$(reset)"
939939
elif [ "$SVC_PRE" = "mkssys" ]; then
940-
info "Supervisor Start Command: $(fg_cyan "sudo startsrc -s bindplane-otel-collector -a start -e "$(cat /opt/bindplane-otel-collector/bindplane-otel-collector.env)"")$(reset)"
940+
info "Supervisor Start Command: $(fg_cyan "sudo startsrc -s bindplane-otel-collector -a start -e \"\$(cat /etc/bindplane-otel-collector.env)\"")$(reset)"
941941
info "Supervisor Stop Command: $(fg_cyan "sudo stopsrc -s bindplane-otel-collector")$(reset)"
942942
info "Supervisor Status Command: $(fg_cyan "sudo lssrc -s bindplane-otel-collector")$(reset)"
943943
fi
@@ -1028,9 +1028,9 @@ uninstall()
10281028

10291029
# Remove the service
10301030
info "Disabling service..."
1031-
if lsitab oiqcollector > /dev/null 2>&1; then
1031+
if lsitab bpcollector > /dev/null 2>&1; then
10321032
# Removing start on boot for the service
1033-
rmitab oiqcollector
1033+
rmitab bpcollector
10341034
fi
10351035
if lssrc -s bindplane-otel-collector > /dev/null 2>&1; then
10361036
# Removing actual service entry

0 commit comments

Comments
 (0)