Problem/Motivation

Stable version of Drush in Aegir debian package is 8.1.6, which is out of date, and lacks of support for recent PHP and Drupal versions.

Steps to reproduce

install aegir from debian package and look for drush version

Proposed resolution

update stable drush version to 8.3.x in debian/aegir3-provision.postinst file

Comments

doka created an issue. See original summary.

doka’s picture

  1. The patch changes the stable drush version from 8.1.6 to 8.3.4
  2. If drush is configured to download the "unstable" (last) version, it now downloads drush:8.x-dev via composer
doka’s picture

Title: update drush version in debian paclage » update drush version in debian package
colan’s picture

Status: Active » Needs review

Makes sense to me, but needs testing.

colan’s picture

Status: Needs review » Needs work
+++ b/debian/aegir3-provision.postinst
@@ -64,11 +64,7 @@ case "$1" in
+              DRUSH_PHAR_URL="https://github.com/drush-ops/drush/releases/download/8.3.4/drush.phar"

The version needs to be updated now. :)

+++ b/debian/aegir3-provision.postinst
@@ -93,7 +89,11 @@ case "$1" in
+              if [ "$DRUSH_VERSION" = "unstable" ]; then
+                  su -c "composer global require drush/drush:8.x-dev" aegir
+              else
+                  su -c "composer global require drush/drush:$DRUSH_VERSION" aegir
+              fi

Why was this moved?

Marked #3185979: Debian package has old version of Drush as a duplicate of this issue.

doka’s picture

please find the updated patch file. It does the following:

  • set the stable drush version to 8.4.5
  • unstable version of drush is set to 8.x-dev
  • it changes the download method for unstable to composer require, since there is no specific "unstable" package to download
doka’s picture

Status: Needs work » Needs review
colan’s picture

Upgrading Drush works well over here, but I can't RTBC this as we're using Ansible instead of the Debian package so we can't test that.

Fixing the parent link.

fenstrat’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new1.31 KB
new543 bytes

Confirmed this works as expected with Debian (tested with PHP 7.4). Marking as RTBC.

Attached bumps drush to the latest 8.x stable, 8.4.8.

kienan’s picture

I was able to test the debian package (on Debian buster), and this seems fine to me as well.

froboy’s picture

I wasn't able to test reinstalling, but I did test the drush update with the following manual steps pulled from the installer file and things looked good to me.

$ sudo curl -SsL https://github.com/drush-ops/drush/releases/download/8.4.8/drush.phar -o drush
$ sudo chmod +x drush
$ sudo mv /usr/local/bin/drush /usr/local/bin/drush-old-2021-08-12
$ sudo mv drush /usr/local/bin/drush
$ drush version
 Drush Version   :  8.4.8

  • viashimo committed b54a79b on 7.x-3.x authored by doka
    Issue #3166952 by doka, fenstrat: update drush version in debian package
    

kienan credited viashimo.

kienan’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.