do not fail the whole installation if one of the package install retries fails
This commit is contained in:
parent
7bba9e1d3f
commit
4f3feb80dd
1 changed files with 9 additions and 4 deletions
|
@ -5,10 +5,15 @@ set -v
|
|||
|
||||
sudo apt-get update
|
||||
sudo apt-get -y upgrade
|
||||
for i in `seq 1 3`;
|
||||
do
|
||||
sudo apt-get -y --fix-missing install aptitude meld whois zsh tmux atop aria2 curl pv gajim tor torsocks nodejs icedove icedove-enigmail icedove-sogo-connector gajim lm-sensors freecad python3-pip meld whois curl pv tor torsocks nodejs npm terminator gsmartcontrol python-pip mercurial redshift gtk-redshift cmake intltool gparted wine solaar glances silversearcher-ag dkms linux-kernel-headers golang keepass2 libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev ruby-dev git retext kdiff3
|
||||
done
|
||||
install_packages="sudo apt-get -y --fix-missing install aptitude meld whois zsh tmux atop aria2 curl pv gajim tor torsocks nodejs icedove icedove-enigmail icedove-sogo-connector gajim lm-sensors freecad python3-pip meld whois curl pv tor torsocks nodejs npm terminator gsmartcontrol python-pip mercurial redshift gtk-redshift cmake intltool gparted wine solaar glances silversearcher-ag dkms linux-kernel-headers golang keepass2 libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev ruby-dev git retext kdiff3"
|
||||
|
||||
set +e
|
||||
for i in `seq 1 3`; do
|
||||
eval $install_packages
|
||||
done
|
||||
|
||||
set -e
|
||||
eval $install_packages
|
||||
|
||||
if [[ -z $DONT_START_TOR ]]; then
|
||||
sudo systemctl enable tor
|
||||
|
|
Loading…
Reference in a new issue