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