forked from evolix/ansible-roles
listupgrade: upstream release 21.06.2
This commit is contained in:
parent
dd32ab5688
commit
6190c66445
|
@ -29,7 +29,7 @@ The **patch** part changes incrementally at each release.
|
||||||
* evolinux-base: copy GPG key instead of using apt-key
|
* evolinux-base: copy GPG key instead of using apt-key
|
||||||
* evomaintenance: upstream release 0.6.4
|
* evomaintenance: upstream release 0.6.4
|
||||||
* kvm-host: replace the "kvm-tools" package with scripts deployed by Ansible
|
* kvm-host: replace the "kvm-tools" package with scripts deployed by Ansible
|
||||||
* listupgrade: upstream release 21.06.1
|
* listupgrade: upstream release 21.06.2
|
||||||
* nodejs: change GPG key name
|
* nodejs: change GPG key name
|
||||||
* ntpd: Add leapfile configuration setting to ntpd on debian 10+
|
* ntpd: Add leapfile configuration setting to ntpd on debian 10+
|
||||||
* packweb-apache: install phpMyAdmin from buster-backports
|
* packweb-apache: install phpMyAdmin from buster-backports
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
# - 60 : current release is not in the $r_releases list
|
# - 60 : current release is not in the $r_releases list
|
||||||
# - 70 : at least an upgradable package is not in the $r_packages list
|
# - 70 : at least an upgradable package is not in the $r_packages list
|
||||||
|
|
||||||
VERSION="21.06.1"
|
VERSION="21.06.2"
|
||||||
|
|
||||||
show_version() {
|
show_version() {
|
||||||
cat <<END
|
cat <<END
|
||||||
|
@ -151,6 +151,9 @@ force_mode() {
|
||||||
}
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
|
if ! cron_mode; then
|
||||||
|
echo "Updating lists..."
|
||||||
|
fi
|
||||||
# Update APT cache and get packages to upgrade and packages on hold.
|
# Update APT cache and get packages to upgrade and packages on hold.
|
||||||
aptUpdateOutput=$(apt -o Dir::State::Lists="${listupgrade_state_dir}" update 2>&1 | (grep -E -ve '^(Listing|WARNING|$)' -e upgraded -e 'up to date' || true))
|
aptUpdateOutput=$(apt -o Dir::State::Lists="${listupgrade_state_dir}" update 2>&1 | (grep -E -ve '^(Listing|WARNING|$)' -e upgraded -e 'up to date' || true))
|
||||||
|
|
||||||
|
@ -282,6 +285,9 @@ main() {
|
||||||
render_mail_template "${template}"
|
render_mail_template "${template}"
|
||||||
/usr/sbin/sendmail "${mailto}" <"${template}"
|
/usr/sbin/sendmail "${mailto}" <"${template}"
|
||||||
|
|
||||||
|
if ! cron_mode; then
|
||||||
|
echo "Dowloading packages..."
|
||||||
|
fi
|
||||||
# Now we try to fetch all the packages for the next update session
|
# Now we try to fetch all the packages for the next update session
|
||||||
downloadstatus=$(apt -o Dir::State::Lists="${listupgrade_state_dir}" dist-upgrade --assume-yes --download-only -q2 2>&1)
|
downloadstatus=$(apt -o Dir::State::Lists="${listupgrade_state_dir}" dist-upgrade --assume-yes --download-only -q2 2>&1)
|
||||||
echo "${downloadstatus}" | grep -q 'Download complete and in download only mode'
|
echo "${downloadstatus}" | grep -q 'Download complete and in download only mode'
|
||||||
|
|
Loading…
Reference in a new issue