unix-setup

This commit is contained in:
rishwanth1995 2018-04-12 14:27:22 -04:00
parent aff1f64ced
commit 3107d81926

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
@ -28,6 +29,7 @@ fi
# Verify Sleuth Kit Java was installed # Verify Sleuth Kit Java was installed
sleuthkit_jar_filepath=/usr/share/java/sleuthkit-$TSK_VERSION.jar; sleuthkit_jar_filepath=/usr/share/java/sleuthkit-$TSK_VERSION.jar;
sleuthkit_osx_jar_filepath=/usr/local/share/java/sleuthkit-$TSK_VERSION.jar;
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"