Posted 11/30/2009 - 09:05 by State68
I'm spending quite a bit of time writing and reviewing patches for Drupal 7 at the moment. The installation process is great, but there are still a couple of bits of repetitive work that I had to do every time I installed, like setting permissions and creating folders.
I've written a couple of bash scripts to automate this. Put them in the next level up from your drupal 7 site's root: for example, if your drupal7 install is at /Applications/XAMPP/xamppfiles/htdocs/drupal7, put the scripts in /Applications/XAMPP/xamppfiles/htdocs.
Next, download Drupal 7 HEAD - the easiest way is via CVS. Then, run the first script as follows:
sudo sh di1.sh yourdrupalfolder
Where "yourdrupalfolder" is - well - your Drupal folder.
Then start the Drupal installation process. Keep going until everything is done and the installer tells you you need to set a few permissions to keep your site secure. Then run the second script:
sudo sh di2.sh yourdrupalfolder
Simple, but very useful if you're re-installing Drupal 7 pretty often.