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

View file

@ -162,6 +162,14 @@ function installGamesMenu () {
# Steam (Menu only, due to licence agreement)
#
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
}

View file

@ -649,7 +649,8 @@ function addRepo_MongoDB3CE () {
#
function addRepo_Wine () {
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
#
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
t) #test purpose only
#yggInit
T) #test purpose only
yggInit
#installIdea
#installNetTools
#installOffice
#addPPA "tmsu/ppa"
updateSystem
addRequiredPPA
installTeamViewer13
exit
;;
a) # install all apps