Merge pull request #3691 from rishwanth1995/unix_setup_mac

script to configure autopsy mac
This commit is contained in:
Brian Carrier 2018-04-17 13:51:05 -04:00 committed by GitHub
commit 00a5495628
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,8 +6,9 @@ TSK_VERSION=4.6.0
# Verify PhotoRec was installed # Verify PhotoRec was installed
photorec_filepath=/usr/bin/photorec photorec_filepath=/usr/bin/photorec
if [ -f "$photorec_filepath" ]; then photorec_osx_filepath=/usr/local/bin/photorec
echo "$photorec_filepath found" if [ -f "$photorec_filepath" ] || [ -f "$photorec_osx_filepath" ]; then
echo "photorec found"
else else
echo "ERROR: Photorec not found, please install the testdisk package" echo "ERROR: Photorec not found, please install the testdisk package"
exit 1 exit 1
@ -27,7 +28,18 @@ else
fi fi
# Verify Sleuth Kit Java was installed # Verify Sleuth Kit Java was installed
sleuthkit_jar_filepath=/usr/share/java/sleuthkit-$TSK_VERSION.jar;
if [ -f "/usr/share/java/sleuthkit-$TSK_VERSION.jar" ]; then
sleuthkit_jar_filepath=/usr/share/java/sleuthkit-$TSK_VERSION.jar
elif [ -f "/usr/local/share/java/sleuthkit-$TSK_VERSION.jar" ]; then
sleuthkit_jar_filepath=/usr/local/share/java/sleuthkit-$TSK_VERSION.jar
else
echo "sleuthkit.jar file not found"
echo "exiting .."
exit 1
fi
ext_jar_filepath=$PWD/autopsy/modules/ext/sleuthkit-postgresql-$TSK_VERSION.jar; ext_jar_filepath=$PWD/autopsy/modules/ext/sleuthkit-postgresql-$TSK_VERSION.jar;
if [ -f "$sleuthkit_jar_filepath" ]; then if [ -f "$sleuthkit_jar_filepath" ]; then
echo "$sleuthkit_jar_filepath found" echo "$sleuthkit_jar_filepath found"