# Deploy a fresh drupal tree
drupal_deploy $new
-
+
+ # Ensure we're in the new drupal folder
+ cd $BASE/drupal-$new
+
# Copy files
cp -Rp ../drupal-$old/{.htaccess,favicon.ico,files/,sites/} . &> /dev/null
for extra_folder in $extra_folders; do
if [ "$new_major" != "4" ]; then
rsync -av --exclude=default ../drupal-$old/profiles/ profiles/
fi
+
+ # Misc: copy image.imagemagick.inc to includes/ folder
+ if [ -e "../drupal-$old/sites/all/modules/image/image.imagemagick.inc" ]; then
+ cp ../drupal-$old/sites/all/modules/image/image.imagemagick.inc includes/
+ fi
# Change symlink to point to the new location
cd $BASE ; rm -rf drupal-$drupal_series && ln -s drupal-$new drupal-$drupal_series