Skip to content

Commit

Permalink
Use Stuttgart mirrors for DE servers (#2509)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Hansson <[email protected]>
  • Loading branch information
enoch85 authored Jul 16, 2023
1 parent 5e46ba6 commit f9ada6d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions addons/locales.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ then
elif [ "$KEYBOARD_LAYOUT" = "de" ]
then
sudo locale-gen "de_DE.UTF-8" && sudo dpkg-reconfigure --frontend=noninteractive locales
# Set a better mirror (only for German servers)
if grep -r archive.ubuntu.com /etc/apt/sources.list
then
sed -i "s|http://archive.ubuntu.com|https://ftp.uni-stuttgart.de|g" /etc/apt/sources.list
elif grep -r de.archive.ubuntu.com /etc/apt/sources.list
then
sed -i "s|http://de.archive.ubuntu.com|https://ftp.uni-stuttgart.de|g" /etc/apt/sources.list
fi
elif [ "$KEYBOARD_LAYOUT" = "fr" ]
then
sudo locale-gen "fr_FR.UTF-8" && sudo dpkg-reconfigure --frontend=noninteractive locales
Expand Down

0 comments on commit f9ada6d

Please sign in to comment.