Skip to content

Instantly share code, notes, and snippets.

View rang501's full-sized avatar

Märt Rang rang501

  • Estonia
View GitHub Profile
@thsutton
thsutton / make-drupal-file-field-private.sh
Last active February 9, 2022 07:52
Hold your hand through the process of converting an existing Drupal 7 file field to use the private file system. Update the $FIELD variable (and, if required, the path and arguments for drush) and do what it tells you to.
#!/bin/sh
#
# This script will hold your hand during the process of converting an existing Drupal 7 file field from public to private.
#
# http://twitter.com/thsutton
# http://www.linkedin.com/pub/thomas-sutton/55/391/350
# http://thomas-sutton.id.au/
set -eu