wine repo add fixed + fct installPackageDpkg fixed (dep) + ..

This commit is contained in:
Francois B 2018-03-25 22:00:32 +02:00
parent 71b0b6e0ed
commit 7136001eff
4 changed files with 20 additions and 9 deletions

View file

@ -182,7 +182,6 @@ function yggInit () {
fi fi
} }
# #
# system update # system update
#TODO: add pip, npm, gem #TODO: add pip, npm, gem
@ -291,9 +290,9 @@ function installPackageDpkg () {
printf "[PKG] Installing $2 from $1 " printf "[PKG] Installing $2 from $1 "
printf "\n[PKG] installing $2 from $1\n" &>> $logFile printf "\n[PKG] installing $2 from $1\n" &>> $logFile
cd /tmp \ cd /tmp \
&& wget -q -O $2 $1 \ && wget -q -O $2 $1 &>> $logFile \
&& sudo dpkg -i $2 \ && sudo dpkg -i $2 &>> $logFile
&& sudo apt-get install -fy &>> $logFile sudo apt-get install -fy &>> $logFile
ret_code=$? ret_code=$?
retCode $ret_code retCode $ret_code
} }

View file

@ -162,6 +162,14 @@ function installGamesMenu () {
# Steam (Menu only, due to licence agreement) # Steam (Menu only, due to licence agreement)
# #
function installSteamMenu () { function installSteamMenu () {
rundCmd "echo steam steam/purge note | sudo debconf-set-selections" \
"accepting steam licence"
rundCmd "echo steam steam/license note | sudo debconf-set-selections" \
"accepting steam licence 2/3"
rundCmd "echo steam steam/question select I AGREE | sudo debconf-set-selections" \
"accepting steam licence 3/3"
installPackage apt steam installPackage apt steam
} }

View file

@ -649,7 +649,8 @@ function addRepo_MongoDB3CE () {
# #
function addRepo_Wine () { function addRepo_Wine () {
addKey "https://dl.winehq.org/wine-builds/Release.key" addKey "https://dl.winehq.org/wine-builds/Release.key"
addPPA "https://dl.winehq.org/wine-builds/ubuntu/" addRepo "winehq.list" \
"deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main"
} }
# #

View file

@ -49,15 +49,18 @@ echo "--[ Yggdrasil log ]--[ "$cDate" ]--[ "$cTime" ]-----------------------" >>
# #
# arguments/options management with getopts # arguments/options management with getopts
#
while getopts ":h,v,f,c,t,u,a,d,k,s,t,n" option; do while getopts ":h,v,f,c,u,a,d,k,s,t,n,T" option; do
case "$option" in case "$option" in
t) #test purpose only T) #test purpose only
#yggInit yggInit
#installIdea #installIdea
#installNetTools #installNetTools
#installOffice #installOffice
#addPPA "tmsu/ppa" #addPPA "tmsu/ppa"
updateSystem
addRequiredPPA
installTeamViewer13
exit exit
;; ;;
a) # install all apps a) # install all apps