Skip to content

Commit

Permalink
Improve disabling of unattended-upgrade and remove release-upgrade sc…
Browse files Browse the repository at this point in the history
…ript
  • Loading branch information
djoven89 committed Apr 11, 2024
1 parent 9f56fcf commit 88a3414
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 661 deletions.
3 changes: 3 additions & 0 deletions main/core/ChangeLog
@@ -1,3 +1,6 @@
8.0.1
+ Improve disabling of unattended-upgrade
+ Remove release-upgrade script
8.0.0
+ Set version to 8.0.0
+ Remove deprecated build dep
Expand Down
6 changes: 6 additions & 0 deletions main/core/debian/changelog
@@ -1,3 +1,9 @@
zentyal-core (8.0.1) jammy; urgency=high

* New upstream release

-- Daniel Joven <djoven@novadevs.com> Wed, 10 Apr 2024 15:20:31 +0100

zentyal-core (8.0.0) jammy; urgency=medium

* New upstream release
Expand Down
10 changes: 7 additions & 3 deletions main/core/debian/zentyal-core.postinst
Expand Up @@ -127,9 +127,13 @@ case "$1" in
chmod 644 /etc/zentyal/pre-save/README
chmod 644 /etc/zentyal/post-save/README

# Remove unattended-upgrade
sed -i 's/1/0/g' /etc/apt/apt.conf.d/20auto-upgrades
systemctl disable --now unattended-upgrades
# Disable unattended-upgrade
if dpkg -l | grep -qo ' unattended-upgrades '; then
if [[ -f '/etc/apt/apt.conf.d/20auto-upgrades' ]]; then
sed -i 's/1/0/g' /etc/apt/apt.conf.d/20auto-upgrades
fi
systemctl disable --now unattended-upgrades
fi

dpkg-trigger --no-await zentyal-core
;;
Expand Down

0 comments on commit 88a3414

Please sign in to comment.