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"