Closed (fixed)
Project:
Quickstart: Prebuilt Drupal Development Environment
Component:
Image Build
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 May 2011 at 00:06 UTC
Updated:
9 Oct 2012 at 13:42 UTC
Jump to comment: Most recent
Comments
Comment #1
MichaelCole commentedHi,
To update Drush in quickstart, do the following (copied from the project home page):
cd ~/quickstart
git pull
bash -x update.sh
Drush in Quickstart is checked out from the git repo, not the packaged zip on drupal.org. This makes several things easier, but apparently "drush selfupdate" doesn't know how to deal with this situation.
Marking not a bug for Quickstart, but I think it's a bug for Drush.
Good luck!
Mike
Comment #2
shiva7663 commentedupdate.sh displays the following, but doesn't actually appear to do anything to upgrade Drush:
Comment #3
l_o_l commentedThe messages might be confusing, but it does work.
Why is the detour through git pull necessary ?
Because Drush is now at 4.5 but quickstart only updates to 4.4
Quickstart has to be updated first to reflect this change ?
Comment #4
philosurfer commentedbump....
Comment #5
gmclelland commentedrunning update.sh didn't do anything for me. Drush still reports that it is 4.4. There have been some big improvements in Drush 4.5 that I think we need.
One example is using git to apply patches in a make file. A lot of distributions won't install because of the installed Drush 4.4.
If anyone knows of a way to install the latest, I'm all ears.
Comment #6
DjebbZ commentedTo update Drush to 4.5
Comment #7
gmclelland commentedThanks @DjebbZ, that worked. Just what I needed.
Comment #8
DjebbZ commentedYou're welcome gmclelland :)
Marking it "needs work" because update.sh needs to change the Drush variable to update to 4.5. But I have no idea how to submit a patch for this image, neither if the file is actually versioned by Git to submit a patch... Maintainers ?
Comment #9
matt v. commentedIn case it may help someone else, the equivalent commands for Drush Make are:
Comment #10
JoeAndrieu commentedFWIW, I'm having this same problem. I tried with both apt-get and pear installations, neither handled the self-update properly. Once I checked it out using git, I could do it (although I had to re-run pear to get the symbolic link working for /usr/bin/drush)
Is there a solution for fixing self updating that doesn't require starting with a clean git checkout?
Comment #11
vacilando commentedAny chance to update Quickstart so that
bash -x update.shbrings Drush to version 5 while making sure thatquickstart-create(see #6) keeps functioning under Drush 5? Thanks!Comment #12
traviscarden commentedSee the patch at #1511728-2: Make quickstart-create compatible with Drush 5, @Vacilando.
Comment #13
MichaelCole commentedquickstart@qs10:~/websites$ cd ..
quickstart@qs10:~$ drush dl drush
Would you like to back up your current drush version 4.4 to /home/quickstart/drush-backups/unknown/20120503235138 and replace it with drush 5.1? (y/n): y
drush backed up to /home/quickstart/drush-backups/unknown/20120503235138/drush [ok]
Project drush (7.x-5.1) downloaded to /home/quickstart/drush. [success]
Drush successfully updated to version 7.x-5.1. [success]
Comment #14
mike stewart commentedComment #15
scuba_flyWhen i try:
quickstart@qs10:~$ drush dl drush
I'm getting:
File drush-7.x-5.7.tar.gz is corrupt (wrong md5 checksum).
no matter how many times I try I keep getting the md5 checksum error.
Can I fix this?
Comment #16
scuba_flyhmm seems I needed to be root this worked:
quickstart@qs10:~$ sudo drush dl drush
Would you like to back up your current drush version 4.4 to /home/quickstart/drush-backups/unknown/20121009134104 and replace it with drush 5.7? (y/n): y
drush backed up to /home/quickstart/drush-backups/unknown/20121009134104/drush [ok]
Project drush (7.x-5.7) downloaded to /home/quickstart/drush. [success]
Drush successfully updated to version 7.x-5.7.
Comment #17
mclinn commented#6 worked great for me. Just getting involved with drush, had v 4.4 on a Quickstart 1.0 vm. Now it's at 5.8 and I'm all set. Thanks!
(initially got the same "unable to update" msg when I tried drush self-update)