Add files via upload

This commit is contained in:
Michael
2021-09-02 09:16:50 +01:00
committed by GitHub
parent 305cb6c9f8
commit b4b585ce42

20
fix-indexing.sh Normal file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
# This script is designed to fix Spotlight indexing issues
# by removing the existing Spotlight index and forcing Spotlight
# to create a new search index.
echo Turning Spotlight indexing off
/usr/bin/mdutil -i off /
echo Deleting the Spotlight folder on the root level of the boot volume
/bin/rm -rf /.Spotlight*
echo Turning Spotlight indexing on
/usr/bin/mdutil -i on /
echo Forcing Spotlight re-indexing on the boot volume
/usr/bin/mdutil -E /