drupal=8
cd /etc/drupal/
date=`date +%Y-%m-%d`
file="${drupal}.${date}.tar"
echo $file
tar cfz ${file} ${drupal} untar the release, stripping off the first path element:
cd $drupal gzip -c -d /tmp/drupal-7.XX.tar.gz | tar vxf - --strip 1
Now, put the permissions back; fix the permissions so that drupal can write to files/* and install its own modules, but not to the rest.
/bin/chown -R daniel:users /etc/drupal/8 /bin/chown -R www-data:www-data /etc/drupal/8/sites/*/files /bin/chown -R www-data:www-data /etc/drupal/8/modules
and finally, run update.php on all websites :-(
site=fruitcake.org
cd /usr/share/drupal7/sites/
mkdir $site
cp default/default.settings.php ${site}/settings.php
for i in files modules themes ; do mkdir ${site}/${i} ; done
chown -R www-data:www-data ${site}Now create the database for it:
site=fruitcake mysqladmin -uroot -p create $site mysql -uroot -p grant all on fruitcake.* to 'fruitcake'@'localhost' identified by 'password'; flush privileges; exit
You're done. Go to http://fruitcake.org/ and follow the setup wizard, giving it the database info.
Now enter theme selection and configuration hell - but that's your problem.
Alias /fruitcake /usr/share/drupal7
User List Page
Recently changed pages report