-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstall.sh
46 lines (35 loc) · 1.39 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
### Install script for CCA Disk Image Processor in Bitcurator 4/Ubuntu 22
git submodule update --init --recursive
if [ ! -d /usr/share/ccatools ]; then
sudo mkdir /usr/share/ccatools
fi
sipcreator_dir="/usr/share/ccatools/sipcreator/"
if [ -d $sipcreator_dir ]; then
sudo rm -rf $sipcreator_dir
fi
sudo mkdir $sipcreator_dir
sudo cp main.py $sipcreator_dir
sudo cp launch $sipcreator_dir
sudo cp design.py $sipcreator_dir
sudo cp design.ui $sipcreator_dir
sudo cp icon.png $sipcreator_dir
sudo cp LICENSE $sipcreator_dir
sudo cp README.md $sipcreator_dir
sudo cp deps/dfxml/python/dfxml.py $sipcreator_dir
sudo cp deps/dfxml/python/Objects.py $sipcreator_dir
sudo cp deps/dfxml/python/walk_to_dfxml.py $sipcreator_dir
# Create launch.desktop file
launch_file="/usr/share/applications/SIPCreator.desktop"
if [ -f $launch_file ]; then
sudo rm -rf $launch_file
fi
sudo touch $launch_file
echo '[Desktop Entry]' | sudo tee --append $launch_file
echo 'Type=Application' | sudo tee --append $launch_file
echo 'Name=SIP Creator' | sudo tee --append $launch_file
echo 'Exec=/usr/share/ccatools/sipcreator/launch' | sudo tee --append $launch_file
echo 'Icon=/usr/share/ccatools/sipcreator/icon.png' | sudo tee --append $launch_file
echo 'Categories=Forensics and Reporting' | sudo tee --append $launch_file
sudo chown -R bcadmin:bcadmin $sipcreator_dir
sudo chmod u+x /usr/share/ccatools/sipcreator/launch