From dc3f2bb6a4d5c3c7000d0e6825c3a26e4c44aa37 Mon Sep 17 00:00:00 2001 From: Krakinou Date: Wed, 26 Jul 2023 08:10:14 +0200 Subject: [PATCH] fix mach = uname -m --- scripts/_common.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/scripts/_common.sh b/scripts/_common.sh index bd9bcc2..8ebafe9 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -6,3 +6,19 @@ access_log_file=/var/log/$app/$app-access.log mach=`uname -m` + + +case "$mach" in + "armv6l" ) mach="arm" + ;; + "armv7l" ) mach="arm" + ;; + "armv8l" ) mach="arm64" + ;; + "aarch64" ) mach="arm64" + ;; + "x86_64" ) mach="64bit" + ;; + * ) mach="32bit" + ;; +esac \ No newline at end of file