Immediately make a reservation that I am in all things related to the Drupal novice and the Drupal-guru users probably will not tell anything new. All of the following is the result of a little more than a year's activity in the provision of hosting sites on Drupal to several friends.
I think everyone knows that Drupal provides such an excellent feature as multisite - in the sites folder you create yourself several folders with different configs and boldly set all the domains to the same folder with Drupal. Everything is brilliant and just exactly until the new version of Drupal comes out - it was expensive for me to transfer folders to the console, to rewrite the new Drupal over the old one - somehow not on Feng Shui, so I came up with the following scheme
')
drupal-6.13
drupal-6.14
drupal-6.15
drupal-6.15.tar.gz
drupal-stable
running
upgrade.rb
the main daddy here is running, it is there that the subfolders with sites, configs and different modules for sites. what else is there interesting? and that's what:
cgi-bin
cron.php -> ../drupal-stable/cron.php
files
includes -> ../drupal-stable/includes
index.php -> ../drupal-stable/index.php
install.php -> ../drupal-stable/install.php
misc -> ../drupal-stable/misc
modules -> ../drupal-stable/modules
profiles -> ../drupal-stable/profiles
scripts -> ../drupal-stable/scripts
sites
themes -> ../drupal-stable/themes
update.php -> ../drupal-stable/update.php
xmlrpc.php -> ../drupal-stable/xmlrpc.php
All that Drupal has is a link to the drupal-stable folder. what's in my drupal-stable folder?
cron.php -> ../drupal-6.15/cron.php
includes -> ../drupal-6.15/includes
index.php -> ../drupal-6.15/index.php
install.php -> ../drupal-6.15/install.php
misc -> ../drupal-6.15/misc
modules -> ../drupal-6.15/modules
profiles -> ../drupal-6.15/profiles
scripts -> ../drupal-6.15/scripts
themes -> ../drupal-6.15/themes
update.php -> ../drupal-6.15/update.php
xmlrpc.php -> ../drupal-6.15/xmlrpc.php
everything in the folder has links to the latest version of drupal
Well, and the final chord - file
upgrade.rb :
the file looks in the current directory and relocates drupal-stable to the latest version in the folder
the whole update process takes 3 steps:
1. Download the latest Drupal: wget
ftp.drupal.org/files/projects/drupal-6.15.tar.gz2. unzip: tar -zxf drupal-6.15.tar.gz
3. ruby upgrade.rb
well, it is also necessary to visit the update.php page on each site (I think you can also automate it, but I already scored that)
PS I’ve added it to this moment and I think, why should I have a drupal-stable folder if I can immediately link it? In general, if anyone has an argument in favor of this folder - well, well, and I'm too lazy to redo the scripts =)