You are here

Drupal site maintenance using symbolic links

For an introduction to dget, please look here: http://drup.org/dget

The dget script

Here is a script to install Drupal using symbolic links to separate directory trees that contain the Drupal core, the contrib modules and the contrib themes.

You can get this with: wget -N -O dget --no-cache http://drup.org/files/dget. ; chmod +x dget
Then install with ln -s `pwd`/dget /usr/local/bin
You should also download the default paths: wget -N -O drupalpaths --no-cache http://drup.org/files/drupalpaths
and if you need them, d5paths and d7paths.
mkdir -p /etc/opt/drupal; mv d*paths /etc/opt/drupal #move the paths files to their default directory
The script installall6 is my starter set for drupal 6 modules
Current version: 2.8

It is a good idea to create a non-root user of the database for drupal, with something like:
DRPW=mylongdrupalpassword
echo "GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON *.* TO 'drupal'@'localhost' IDENTIFIED BY '$DRPW';" | mysql -u root -p
#for Drupal 5 this needs to be:
echo "GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON *.* TO 'drupal'@'localhost' IDENTIFIED BY '$DRPW';" | mysql -u root -p

-For the latest D6 module install, check: http://drup.org/current-drupal-6-module-versions
-For a limited collection of D5 module installs, check: http://drup.org/current-drupal-5-module-versions
-To update a non-svn backed directory, delete and replace e.g.:

DIR=/opt/dr7/special
MOD=menu_position
rm -Rf $DIR/modules/$MOD
dget install $MOD 7.x-1.x-dev $DIR
AttachmentSize
Binary Data upgradeall57570 bytes
Binary Data d5paths258 bytes
Binary Data drupalpaths258 bytes
Binary Data d7paths258 bytes
Binary Data dget.13.34 KB
Topic: