-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbase-install.sh
More file actions
executable file
·25 lines (19 loc) · 948 Bytes
/
base-install.sh
File metadata and controls
executable file
·25 lines (19 loc) · 948 Bytes
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
#!/bin/bash
LOCATION=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
echo "This script will now locally (within this repo) install mitmproxy and JRE8 to make iLO console and web access function. (Ctrl+C to abort, Enter to continue)"
read -s
echo "Download tool archives..."
wget -O /tmp/mitmproxy.tar.gz "https://snapshots.mitmproxy.org/6.0.2/mitmproxy-6.0.2-linux.tar.gz"
wget -O /tmp/jre.tar.gz "https://download.macromedia.com/pub/coldfusion/java/java8/8u321/jre/jre-8u321-linux-x64.tar.gz"
echo "Extract..."
mkdir -p $LOCATION/jre
cd $LOCATION/jre
tar xf /tmp/jre.tar.gz
cd $LOCATION
tar xf /tmp/mitmproxy.tar.gz
echo "Remove archives from /tmp location..."
rm -f /tmp/jre.tar.gz
rm -f /tmp/mitmproxy.tar.gz
echo "Install local Java config to allow TLSv1.1 and disable cert checking..."
cp $LOCATION/deployment.config $LOCATION/jre/jre1.8.0_321/lib/
cp $LOCATION/deployment.properties $LOCATION/jre/jre1.8.0_321/lib/