* Rebuilding for better caching * Rebuilding for better caching. Squash this commit. * Paths to dockerfiles changed. * Rebuilding for better caching. Squash this commit. * Rebuilding for better caching. Squash this commit. * Refactoring * Refactoring * fixing the screaming about duplicates in apt sources. * Vanity tagging * Vanity tagging * Try vanity again. * re-enable all versions and variants
26 lines
784 B
Bash
Executable file
26 lines
784 B
Bash
Executable file
#!/bin/bash
|
|
source /installers/config
|
|
echo "force-unsafe-io" > /etc/dpkg/dpkg.cfg.d/force-unsafe-io
|
|
|
|
# We're gonna move the sources to .d/ubuntu.list, then copy it, then manipulate it for a mirror list.
|
|
(
|
|
cat /etc/apt/sources.list;
|
|
cat /etc/apt/sources.list \
|
|
| sed 's/http\:\/\/archive\.ubuntu\.com\/ubuntu\//mirror\:\/\/mirrors.ubuntu.com\/mirrors.txt/g' \
|
|
| sed "s|deb http://security.ubuntu.com|# deb http://security.ubuntu.com|g"
|
|
) \
|
|
| sed '/^#/d' \
|
|
| sed '/^$/d' \
|
|
| uniq \
|
|
> /etc/apt/sources.list.d/ubuntu.list
|
|
rm /etc/apt/sources.list; touch /etc/apt/sources.list;
|
|
|
|
# Update apt repos
|
|
apt-get -qq update
|
|
|
|
# System upgrade
|
|
apt-get -yq upgrade
|
|
|
|
# Install apt-utils & ca-certificates to prevent some screaming.
|
|
$APT_GET ca-certificates
|
|
$APT_GET apt apt-utils
|