From 32bc4c0b17046c62af8519b17bb6a83c21d644df Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Fri, 21 May 2021 18:44:47 +0530 Subject: [PATCH] added architecture check --- scripts/_common.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 7e55ac0..299c8b8 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -4,8 +4,10 @@ # COMMON VARIABLES #================================================= -# dependencies used by the app -pkg_dependencies="deb1 deb2 php$YNH_DEFAULT_PHP_VERSION-deb1 php$YNH_DEFAULT_PHP_VERSION-deb2" +architecture=$(dpkg --print-architecture) +if [ $architecture = "amd64" ]; then + architecture="x64" +fi #================================================= # PERSONAL HELPERS