Home ›
check for stale system table entries in one linecheck for stale system table entries in one line
Submitted by Benjamin Melançon on March 21, 2010 - 12:36pm
Searched words:
missing files
drupal module remove stale system files
for file in mysql dbname -e "SELECT filename FROM system" | sed "1d"; do [ ! -f $file ] && echo $file; done
This lists all the files from the system table that do not exist in the actual file system anymore.
In our experience, this more often mean modules with bad uninstall practices, rather than modules deleted without uninstalling.
See also Enabled Modules
More like this
- Installing Drush
- Check for duplicate titles of a node with AJAX to warn immediately before entering more data or submitting
- Execute command-line statements from within the vi editor
- Export and re-import a database with Drush and the command line
- Using Drush to list your modules and their statuses: drush sm (for show modules)


Comments
Post new comment