Skip to content

Commit 2f19099

Browse files
Configure apt to retry downloading on error (for earlier Hestia versions)
1 parent d6ec14c commit 2f19099

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

install/upgrade/0.10.0-190430.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ elif [ "$os" = "ubuntu" ]; then
4747
VERSION='ubuntu'
4848
fi
4949

50+
# Configure apt to retry downloading on error
51+
if [ ! -f /etc/apt/apt.conf.d/80-retries ]; then
52+
echo "APT::Acquire::Retries \"3\";" > /etc/apt/apt.conf.d/80-retries
53+
fi
5054

5155
# Clear the screen from apt output to prepare for upgrade installer experience
5256
clear

0 commit comments

Comments
 (0)