From 71b0b6e0ed83e6cc36b6f7a0eb846636a77e68fe Mon Sep 17 00:00:00 2001 From: Francois B Date: Sun, 25 Mar 2018 13:51:23 +0200 Subject: [PATCH] check arch added in yggInit --- core_functions.sh | 8 ++++++++ repo_functions.sh | 3 --- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/core_functions.sh b/core_functions.sh index 2327ded..7fe7fda 100644 --- a/core_functions.sh +++ b/core_functions.sh @@ -107,6 +107,14 @@ function isMate () { function yggInit () { typeset ret_code + if ! dpkg --print-foreign-architectures | grep -qi i386; then + printf "[INIT]" + runCmd "sudo dpkg --add-architecture i386" \ + "adding i386 architecture" + else + printf "[INIT] i386 architecture already added [ "$BOLDVERT"OK"$NORMAL" ] \n" + fi + if ! grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/* | grep -q ubuntu-make; then printf "[INIT][UMAKE] PPA not found, adding PPA...\n" printf "[INIT][UMAKE] PPA not found, adding PPA...\n" &>> $logFile diff --git a/repo_functions.sh b/repo_functions.sh index 97d645f..1fea064 100644 --- a/repo_functions.sh +++ b/repo_functions.sh @@ -785,9 +785,6 @@ function nitrogen_TrtFct () { # install required ppa and settings # function addRequiredPPA () { - runCmd "sudo dpkg --add-architecture i386" \ - "adding i386 architecture" - runCmd "echo sience-config science-config/group select '$myHomedir ($myHomedir)' | sudo debconf-set-selections" \ "apply settings for science-config pkg"