{"id":1070,"date":"2014-10-15T21:55:13","date_gmt":"2014-10-16T02:55:13","guid":{"rendered":"http:\/\/yourLinuxGuy.com\/?p=1070"},"modified":"2014-10-16T07:45:28","modified_gmt":"2014-10-16T12:45:28","slug":"easy-way-to-update-to-drupal-7-32","status":"publish","type":"post","link":"https:\/\/yourLinuxGuy.com\/?p=1070","title":{"rendered":"Easy way to update to Drupal 7.32&#8230;"},"content":{"rendered":"<p>The newly-announced vulnerability to Drupal versions earlier than <a title=\"https:\/\/www.drupal.org\/drupal-7.32-release-notes\" href=\"https:\/\/www.drupal.org\/drupal-7.32-release-notes\" target=\"_blank\">7.32<\/a> is pretty ugly.\u00a0 Here&#8217;s all the detail you need about the problem:<\/p>\n<p><a title=\"https:\/\/www.drupal.org\/SA-CORE-2014-005\" href=\"https:\/\/www.drupal.org\/SA-CORE-2014-005\" target=\"_blank\">\u00a0https:\/\/www.drupal.org\/SA-CORE-2014-005<\/a><\/p>\n<p>&#8230;and while there&#8217;s a small patch described in the info, it isn&#8217;t that hard to just do the full upgrade.\u00a0 And even though the Drupal folks have<a title=\"https:\/\/www.drupal.org\/node\/1494290\" href=\"https:\/\/www.drupal.org\/node\/1494290\" target=\"_blank\"> a nice walk-though here<\/a>, here&#8217;s one quick and dirty way to get the new code in place if you have console access&#8230;<\/p>\n<pre>#Create a backup...\r\ntar -czvf ~\/public_html.\"`date '+%Y.%m.%d-%H.%M.%S'`\".tgz ~\/public_html\r\n# Download and extract the new version\r\ncd tmp\r\nwget http:\/\/ftp.drupal.org\/files\/projects\/drupal-7.32.tar.gz\r\ntar -zxvf drupal-7.32.tar.gz\r\n# Now we kick aside the sites folder, but keep it handy for reference\r\nmv drupal-7.32\/sites drupal-7.32\/sites.update.7.32\r\n# And then we overwrite the critical files\r\n# Note that this line actually copies regular files and the dot file\r\ncp -fR drupal-7.32\/* drupal-7.32\/.htaccess ~\/public_html\r\n# Then we clean up space and be done\r\nrm drupal-7.32.tar.gz\r\nrm -r drupal-7.32<\/pre>\n<p>Then you&#8217;re good to go.\u00a0 Of course, please don&#8217;t just run this if you don&#8217;t know what you&#8217;re doing, and make sure to do snapshots and\/or backups&#8230;\u00a0 And realize that I have everything hard-coded here, so if your paths are different, bla, bla bla.<\/p>\n<p>By the way, I looked around for something official like this, but didn&#8217;t find anything.\u00a0 But I did get this from my good friend Todd full of good suggestions and methods&#8230; I may update my method later:<\/p>\n<p><a title=\"https:\/\/www.drupal.org\/upgrade\/downloading-drupal-command-line\" href=\"https:\/\/www.drupal.org\/upgrade\/downloading-drupal-command-line\" target=\"_blank\">https:\/\/www.drupal.org\/upgrade\/downloading-drupal-command-line<\/a><\/p>\n<p>But if you know of something better or have written something yourself, let me know please!<\/p>\n<p>\ud83d\ude0e<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The newly-announced vulnerability to Drupal versions earlier than 7.32 is pretty ugly.\u00a0 Here&#8217;s all the detail you need about the problem: \u00a0https:\/\/www.drupal.org\/SA-CORE-2014-005 &#8230;and while there&#8217;s a small patch described in the info, it isn&#8217;t that hard to just do the&#8230;<br \/><a class=\"read-more-button\" href=\"https:\/\/yourLinuxGuy.com\/?p=1070\">Read more<\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[12,137],"tags":[153,144,145],"class_list":["post-1070","post","type-post","status-publish","format-standard","hentry","category-advanced","category-drupal","tag-drupal","tag-sa-core-2014-005","tag-script"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pnjn1-hg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/1070","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1070"}],"version-history":[{"count":4,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/1070\/revisions"}],"predecessor-version":[{"id":1074,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/1070\/revisions\/1074"}],"wp:attachment":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1070"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1070"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1070"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}