Make D10->D12 upgrade steps noninteractive
This commit is contained in:
parent
1e497413e8
commit
d92acb7e6f
|
@ -224,15 +224,17 @@
|
|||
mode: 0755
|
||||
content: |
|
||||
#!/usr/bin/env bash
|
||||
exec 1>/tmp/upgrade-d10.log
|
||||
exec 2>&1
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt-get --download-only install libcrypt1
|
||||
apt-get --download-only install --yes libcrypt1
|
||||
dpkg --force-all --install /var/cache/apt/archives/{libcrypt1,libpam0g,libc6}*.deb
|
||||
apt --fix-broken install
|
||||
apt-get --no-install-recommends install apt dpkg dpkg-dev base-files zstd
|
||||
apt-get --no-install-recommends install ca-certificates
|
||||
apt-get --no-install-recommends --option Dpkg::Options::="--force-confold" install sudo
|
||||
apt-get --no-install-recommends --option Dpkg::Options::="--force-confnew" upgrade
|
||||
apt-get --no-install-recommends --option Dpkg::Options::="--force-confnew" dist-upgrade
|
||||
apt --fix-broken install --yes
|
||||
apt-get --no-install-recommends --option Dpkg::Options::="--force-confold" install --yes apt dpkg dpkg-dev base-files zstd
|
||||
apt-get --no-install-recommends --option Dpkg::Options::="--force-confold" install --yes ca-certificates
|
||||
apt-get --no-install-recommends --option Dpkg::Options::="--force-confold" install --yes sudo
|
||||
apt-get --no-install-recommends --option Dpkg::Options::="--force-confnew" upgrade --yes
|
||||
apt-get --no-install-recommends --option Dpkg::Options::="--force-confnew" dist-upgrade --yes
|
||||
systemctl restart ssh
|
||||
|
||||
- name: run script to perform safe d10->d12 upgrade (will take a long time)
|
||||
|
|
Loading…
Reference in New Issue