User login

Upgrade Drupal a version with an automatic patch

Agaric has modified version the shell command version (listed by Khalid right above the comments) to be a script that can patch Drupal regardless of the name of its current directory..

Agaric's version is attached.

Put it in a directory such as /usr/sbin and make sure to chmod it to executable (chmod a+x version-upgrade-diff). Oh, and Drupal's file uploader added a period which you will probably want to remove.

The script expects to be called from within the root directory of the drupal installation you are updating (for instance /var/www/mydrupalinstall) or, optionally, call the script from anywhere but include a full path like the above after the two required arguments, which are current version number and new version number to upgrade to, in the format 5.5 5.6 (or 5.1 5.6 if you missed a couple). For instance:

cd /var/www/d5
/usr/sbin/version-upgrade-diff 5.3 5.6


Searched words: 
Drupal update to new version security release bugfix patches appy with a script automatic drupal version upgrade patch


Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.