-
Notifications
You must be signed in to change notification settings - Fork 2
/
install.sh
32 lines (28 loc) · 1022 Bytes
/
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
#!/bin/bash
RED='\033[0;31m'
NORMAL='\033[0m'
GREEN='\033[0;32m'
WORKING_DIR=$(pwd)
DISTRO_VER=$(lsb_release -rs)
# echo -e ${RED}"Are you using WSL? (y/n)"${NORMAL}
# read -p 'Input: ' INPUT
if [[ -n "$IS_WSL" || -n "$WSL_DISTRO_NAME" ]]; then
echo "This is WSL"
echo -e ${GREEN}"Setting up forensics environment with WSL"${NORMAL}
sleep 2
chmod +x ./bin/ubuntu-wsl.sh
bash ./bin/ubuntu-wsl.sh $WORKING_DIR
else
echo "This is not WSL"
echo -e ${GREEN}"Setting up forensics environment with Ubuntu "$DISTRO_VER${NORMAL}
sleep 2
if [[ $DISTRO_VER == "23.04" || $DISTRO_VER > "23.04" ]]; then
echo -e ${RED}"Ubuntu 23.04 installation script is unstable and may contains many bugs."${NORMAL}
sleep 2
chmod +x ./bin/ubuntu23.sh
bash ./bin/ubuntu23.sh $WORKING_DIR
else
chmod +x ./bin/ubuntu22.sh
bash ./bin/ubuntu22.sh $WORKING_DIR
fi
fi