Skip to content

jmcouillard/drupal-update

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Drupal update

Shell script to update a Drupal installation to a newer version.

I am hosted by MediaTemple gridserver, so the settings might be different depending on your hosting. However, it should be working on any LAMP (Linux-Apache-MySQL-PHP) server stack.

Requirements

  • SSH access to your server to execute shell script.

Components

  • versions : a PHP micro-site which allows you to have an overview of your Drupal installations, rading the json file generated bye versions.sh.
  • update.sh : a tiny shell-script which download a specific version of Drupal and update a specific website. Doesn't perform database update.
  • versions.sh : a tiny shell-script which browse a specific folder for Drupal installations, parse the CHANGE.txt looking for the version, and write a json report.

Installation

  1. Copy the two shell script (update.sh and versions.sh) to a path were script can be executed by SSH.
  2. Edit update.sh and set variables values :
    • downloadpath : path to a temporary folder where drupal installation folder will be downloaded.
    • sitepath : path to your domains folder (where all your domains are listed).
    • htmlfolder : path to the public html subdirectory, relative to sitepath (where the index.html file is located, ex.: "/html", "/private_html").
    • scriptdata : path to the scripts location (where versions.sh is located).
  3. Edit versions.sh :
    • root : path to your domains folder (where all your domains are listed).
    • output : path to the json file, which should be located inside the versions micro-site folder.
  4. Copy the versions folder to a web-acessible location. This micro-site will allow you to have an overview of your drupal installations.

Usage

  1. Connect by SSH to your server and execute sh update.sh.
  2. It will ask for a version of Drupal to download (ex.: 6.28 or 7.22) and a website to update (ex.: example.com).
  3. The shell-script will also trigger versions.sh to update the json file.
  4. You can navigate to the versions micro-website to see an overall of your Drupal site status.

About

Shell script to update a Drupal installation to a newer version.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published