listupgrade: upstream release 23.03
This commit is contained in:
parent
d64193287d
commit
b57fd16ee6
|
@ -31,6 +31,7 @@ The **patch** part changes is incremented if multiple releases happen the same m
|
||||||
* Removed all "warn: False" args in command, shell and other modules as it's been deprecated and will give a hard fail in ansible-core 2.14.0.
|
* Removed all "warn: False" args in command, shell and other modules as it's been deprecated and will give a hard fail in ansible-core 2.14.0.
|
||||||
* bind: refactor role
|
* bind: refactor role
|
||||||
* evolinux-users: Update sudoers template to remove commands allowed without password
|
* evolinux-users: Update sudoers template to remove commands allowed without password
|
||||||
|
* listupgrade: upstream release 23.03
|
||||||
* nagios-nrpe : Rewrite check_vrrpd for a better check (check rp_filter, vrrpd and uvrrpd compatible, use arguments, …)
|
* nagios-nrpe : Rewrite check_vrrpd for a better check (check rp_filter, vrrpd and uvrrpd compatible, use arguments, …)
|
||||||
* openvpn: Change check_openvpn destination file to comply with recent EvoBSD change
|
* openvpn: Change check_openvpn destination file to comply with recent EvoBSD change
|
||||||
* postfix: come back to default value of `notify_classes` for pack mails.
|
* postfix: come back to default value of `notify_classes` for pack mails.
|
||||||
|
|
|
@ -9,13 +9,13 @@
|
||||||
# - 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.3"
|
VERSION="23.03"
|
||||||
|
|
||||||
show_version() {
|
show_version() {
|
||||||
cat <<END
|
cat <<END
|
||||||
listupgrade.sh version ${VERSION}
|
listupgrade.sh version ${VERSION}
|
||||||
|
|
||||||
Copyright 2018-2021 Evolix <info@evolix.fr>,
|
Copyright 2018-2023 Evolix <info@evolix.fr>,
|
||||||
Gregory Colpart <reg@evolix.fr>,
|
Gregory Colpart <reg@evolix.fr>,
|
||||||
Romain Dessort <rdessort@evolix.fr>,
|
Romain Dessort <rdessort@evolix.fr>,
|
||||||
Ludovic Poujol <lpoujol@evolix.fr>,
|
Ludovic Poujol <lpoujol@evolix.fr>,
|
||||||
|
@ -84,6 +84,7 @@ Subject: Prochain creneau pour mise a jour de votre serveur ${hostname}
|
||||||
X-Debian-Release: ${local_release}
|
X-Debian-Release: ${local_release}
|
||||||
X-Packages: ${packagesParsable}
|
X-Packages: ${packagesParsable}
|
||||||
X-Date: ${date}
|
X-Date: ${date}
|
||||||
|
X-Listupgrade-Version: ${VERSION}
|
||||||
|
|
||||||
Bonjour,
|
Bonjour,
|
||||||
|
|
||||||
|
@ -100,15 +101,15 @@ semaine prochaine.
|
||||||
|
|
||||||
Voici la listes de packages qui seront mis à jour :
|
Voici la listes de packages qui seront mis à jour :
|
||||||
|
|
||||||
$(cat "${packages}" | sort | uniq)
|
$(cat "${packages}")
|
||||||
|
|
||||||
Liste des packages dont la mise-à-jour a été manuellement suspendue :
|
Liste des packages dont la mise-à-jour a été manuellement suspendue :
|
||||||
|
|
||||||
$(cat "${packagesHold}" | sort | uniq)
|
$(cat "${packagesHold}")
|
||||||
|
|
||||||
Liste des services qui seront redémarrés :
|
Liste des services qui seront redémarrés :
|
||||||
|
|
||||||
$(cat "${servicesToRestart}" | sort | uniq)
|
$(cat "${servicesToRestart}")
|
||||||
|
|
||||||
N'hésitez pas à nous faire toute remarque sur ce créneau d'intervention le plus
|
N'hésitez pas à nous faire toute remarque sur ce créneau d'intervention le plus
|
||||||
tôt possible.
|
tôt possible.
|
||||||
|
@ -181,6 +182,16 @@ main() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local_release=$(cut -f 1 -d . </etc/debian_version)
|
local_release=$(cut -f 1 -d . </etc/debian_version)
|
||||||
|
# In case the version is a release name and not a number
|
||||||
|
case "${local_release}" in
|
||||||
|
jessie*) local_release=8 ;;
|
||||||
|
stretch*) local_release=9 ;;
|
||||||
|
buster*) local_release=10 ;;
|
||||||
|
bullseye*) local_release=11 ;;
|
||||||
|
bookworm*) local_release=12 ;;
|
||||||
|
trixie*) local_release=13 ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
if force_mode; then
|
if force_mode; then
|
||||||
if ! cron_mode; then
|
if ! cron_mode; then
|
||||||
|
@ -240,7 +251,7 @@ main() {
|
||||||
echo "MySQL" >>"${servicesToRestart}"
|
echo "MySQL" >>"${servicesToRestart}"
|
||||||
elif echo "${pkg}" | grep -q "^mariadb-server"; then
|
elif echo "${pkg}" | grep -q "^mariadb-server"; then
|
||||||
echo "MariaDB" >>"${servicesToRestart}"
|
echo "MariaDB" >>"${servicesToRestart}"
|
||||||
elif echo "${pkg}" | grep -qE "^postgresql-[[:digit:]]+(\.[[:digit:]]+)?$"; then
|
elif echo "${pkg}" | grep -qE "^postgresql-[[:digit:]]+\.[[:digit:]]+$"; then
|
||||||
echo "PostgreSQL" >>"${servicesToRestart}"
|
echo "PostgreSQL" >>"${servicesToRestart}"
|
||||||
elif echo "${pkg}" | grep -qE "^tomcat[[:digit:]]+$"; then
|
elif echo "${pkg}" | grep -qE "^tomcat[[:digit:]]+$"; then
|
||||||
echo "Tomcat" >>"${servicesToRestart}"
|
echo "Tomcat" >>"${servicesToRestart}"
|
||||||
|
|
Loading…
Reference in a new issue