check arch added in yggInit
This commit is contained in:
parent
31ef309ec4
commit
71b0b6e0ed
2 changed files with 8 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue