packages: Fix architecture detection

Change uname flag for detecting current system architecture, as
the old flag was not reporting proper architecture type on Debian
distribution.
According to uname documentation, the new flag is portable so it
should be supported on all platforms.

Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
This commit is contained in:
Rafal Stefanowski 2022-12-01 10:23:48 +01:00
parent f1161e04d7
commit f08a1d6822

View File

@ -19,7 +19,7 @@ CAS_LICENSE_NAME="BSD-3-Clause"
CAS_MODULES_DIR="extra/block/opencas" CAS_MODULES_DIR="extra/block/opencas"
SUPPORTED_FROM_VERSION="20.03" SUPPORTED_FROM_VERSION="20.03"
THIS=$(basename "$0") THIS=$(basename "$0")
ARCH="$(uname -i)" ARCH="$(uname -m)"
SCRIPT_BASE_DIR=$(dirname $(realpath "$0")) SCRIPT_BASE_DIR=$(dirname $(realpath "$0"))
RPM_SPEC_FILE="$SCRIPT_BASE_DIR/${THIS%.*}.d/rpm/CAS_NAME.spec" RPM_SPEC_FILE="$SCRIPT_BASE_DIR/${THIS%.*}.d/rpm/CAS_NAME.spec"
DEB_CONTROL_FILES_DIR="$SCRIPT_BASE_DIR/${THIS%.*}.d/deb/debian" DEB_CONTROL_FILES_DIR="$SCRIPT_BASE_DIR/${THIS%.*}.d/deb/debian"