From 12e5616dfb70082ae073e568bbadee8b5ff2a5d9 Mon Sep 17 00:00:00 2001 From: Trey Dockendorf Date: Sat, 14 Oct 2023 12:17:47 -0400 Subject: [PATCH] Use 'uname -m' rather than 'uname -p' to avoid errors on Debian 12 --- packages/ondemand-release-latest/deb/debian/postinst | 2 +- packages/ondemand-release/deb/debian/postinst | 2 +- packages/passenger/deb/debian/rules | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/ondemand-release-latest/deb/debian/postinst b/packages/ondemand-release-latest/deb/debian/postinst index ade94b7..ffcecac 100644 --- a/packages/ondemand-release-latest/deb/debian/postinst +++ b/packages/ondemand-release-latest/deb/debian/postinst @@ -1,6 +1,6 @@ #!/bin/bash -if [ "$(uname -p)" = "ppc64le" ]; then +if [ "$(uname -m)" = "ppc64le" ]; then rm -f /etc/apt/sources.list.d/nodesource.list rm -f /etc/apt/trusted.gpg.d/nodesource.gpg fi diff --git a/packages/ondemand-release/deb/debian/postinst b/packages/ondemand-release/deb/debian/postinst index ade94b7..ffcecac 100644 --- a/packages/ondemand-release/deb/debian/postinst +++ b/packages/ondemand-release/deb/debian/postinst @@ -1,6 +1,6 @@ #!/bin/bash -if [ "$(uname -p)" = "ppc64le" ]; then +if [ "$(uname -m)" = "ppc64le" ]; then rm -f /etc/apt/sources.list.d/nodesource.list rm -f /etc/apt/trusted.gpg.d/nodesource.gpg fi diff --git a/packages/passenger/deb/debian/rules b/packages/passenger/deb/debian/rules index db883af..926bd09 100755 --- a/packages/passenger/deb/debian/rules +++ b/packages/passenger/deb/debian/rules @@ -35,7 +35,7 @@ $(PREFIX)/usr/sbin/passenger-status "$$@" endef export ONDEMAND_PASSENGER_STATUS -export ARCH = $(shell uname -p) +export ARCH = $(shell uname -m) ifeq ($(ARCH),aarch64) export MFLAG = "-march=armv8-a" else