changes to unix_setup for execution

This commit is contained in:
Greg DiCristofaro 2022-10-28 13:32:54 -04:00
parent c99d8e730c
commit 96191c488d
2 changed files with 0 additions and 8 deletions

View File

@ -108,12 +108,6 @@ class Autopsy4 < Formula
ENV["TSK_JAVA_LIB_PATH"] = File.join(prefix, "share", "java")
system unix_setup_script, "-j", "#{java_home_path}"
# set executable by all (for packaging and running)
system "chmod", "a+x", "#{autopsy_install_path}/autopsy/markmckinnon/Export*"
system "chmod", "a+x", "#{autopsy_install_path}/autopsy/markmckinnon/parse*"
system "chmod", "-R", "a+x", "#{autopsy_install_path}/autopsy/solr/bin"
system "chmod", "a+x", "#{autopsy_install_path}/bin/autopsy"
open(File.join(autopsy_install_path, "etc", "autopsy.conf"), 'a') { |f|
# gstreamer needs the 'gst-plugin-scanner' to locate gstreamer plugins like the ones that allow gstreamer to play videos in autopsy
# so, the jreflags allow the initial gstreamer lib to be loaded and the 'GST_PLUGIN_SYSTEM_PATH' along with 'GST_PLUGIN_SCANNER'

View File

@ -174,8 +174,6 @@ parts:
# snaps run applications with different permissions. This ensures applications can run.
chmod 755 "$AUTOPSY_LOCATION/bin/autopsy"
find "$AUTOPSY_LOCATION/autopsy/markmckinnon" -name "Export*" -o -name "parse*" | xargs -I{} chmod a+x {}
chmod -R a+x "$AUTOPSY_LOCATION/autopsy/solr/bin"
# include this line to print all set variables
# sed -i '129 i set -o posix ; echo $(set) >&2 ; ls -l "${jdkhome}/bin/java"' "$AUTOPSY_LOCATION/platform/lib/nbexec"