1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-20 13:50:12 +01:00

provision-apt: add assumeyes config

closes #600
This commit is contained in:
Marcus Hoffmann 2018-11-27 18:13:33 +01:00
parent c64641a545
commit ffb78afd0b

View File

@ -16,9 +16,12 @@ printf 'APT::Acquire::Retries "20";\n' \
printf 'APT::Periodic::Update-Package-Lists "0";\nAPT::Periodic::Unattended-Upgrade "0";\n' \ printf 'APT::Periodic::Update-Package-Lists "0";\nAPT::Periodic::Unattended-Upgrade "0";\n' \
> /etc/apt/apt.conf.d/99no-auto-updates > /etc/apt/apt.conf.d/99no-auto-updates
printf 'APT::Get::Assume-Yes "true";\n' \
> /etc/apt/apt.conf.d/99assumeyes
if echo $debian_mirror | grep '^https' 2>&1 > /dev/null; then if echo $debian_mirror | grep '^https' 2>&1 > /dev/null; then
apt-get -y update || apt-get -y update apt-get update || apt-get update
apt-get -y install apt-transport-https ca-certificates apt-get install apt-transport-https ca-certificates
fi fi
cat << EOF > /etc/apt/sources.list cat << EOF > /etc/apt/sources.list
@ -32,9 +35,9 @@ printf "Package: *\nPin: release o=Debian,a=testing\nPin-Priority: -300\n" > /et
dpkg --add-architecture i386 dpkg --add-architecture i386
apt-get -y update || apt-get -y update apt-get update || apt-get update
apt-get -y upgrade --download-only apt-get upgrade --download-only
apt-get -y upgrade apt-get upgrade
packages=" packages="
ant ant
@ -109,8 +112,8 @@ packages="
zip zip
zlib1g:i386 zlib1g:i386
" "
apt-get install --yes $packages --download-only apt-get install $packages --download-only
apt-get install --yes $packages apt-get install $packages
highestjava=`update-java-alternatives --list | sort -n | tail -1 | cut -d ' ' -f 1` highestjava=`update-java-alternatives --list | sort -n | tail -1 | cut -d ' ' -f 1`
update-java-alternatives --set $highestjava update-java-alternatives --set $highestjava