Skip to content
Snippets Groups Projects
Commit 96191c48 authored by Greg DiCristofaro's avatar Greg DiCristofaro
Browse files

changes to unix_setup for execution

parent c99d8e73
No related branches found
No related tags found
No related merge requests found
...@@ -108,12 +108,6 @@ class Autopsy4 < Formula ...@@ -108,12 +108,6 @@ class Autopsy4 < Formula
ENV["TSK_JAVA_LIB_PATH"] = File.join(prefix, "share", "java") ENV["TSK_JAVA_LIB_PATH"] = File.join(prefix, "share", "java")
system unix_setup_script, "-j", "#{java_home_path}" 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| 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 # 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' # so, the jreflags allow the initial gstreamer lib to be loaded and the 'GST_PLUGIN_SYSTEM_PATH' along with 'GST_PLUGIN_SCANNER'
......
...@@ -174,8 +174,6 @@ parts: ...@@ -174,8 +174,6 @@ parts:
# snaps run applications with different permissions. This ensures applications can run. # snaps run applications with different permissions. This ensures applications can run.
chmod 755 "$AUTOPSY_LOCATION/bin/autopsy" 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 # 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" # sed -i '129 i set -o posix ; echo $(set) >&2 ; ls -l "${jdkhome}/bin/java"' "$AUTOPSY_LOCATION/platform/lib/nbexec"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment