-
Notifications
You must be signed in to change notification settings - Fork 3
/
chroot-tasks.sh
executable file
·20 lines (19 loc) · 1017 Bytes
/
chroot-tasks.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
# Install deb dependencies and unzip Martus client into /usr/local/martus
mount /proc
echo -e "\n\nInstalling Debian packages for Martus dependencies"
dpkg -i /tmp/libnss3_3.17.2-1.1_i386.deb /tmp/libjpeg62-turbo_1.3.1-11_i386.deb /tmp/openjdk-8-jre-headless_8u40~b22-2_i386.deb
dpkg -i /tmp/openjdk-8-jre_8u40~b22-2_i386.deb /tmp/openjdk-8-jdk_8u40~b22-2_i386.deb
dpkg -i --force-all /tmp/libopenjfx-jni_8u20-b26-3_i386.deb
dpkg -i --force-all /tmp/openjfx_8u20-b26-3_i386.deb /tmp/libopenjfx-java_8u20-b26-3_all.deb /tmp/libicu4j-4.4-java_4.4.2.2-2_all.deb
dpkg -i --force-all /tmp/tzdata-java_2015a-1_all.deb
echo -e "\n\nInstalling Martus 5.0.2 into /usr/local/martus"
mkdir -p /usr/local/martus
cd /usr/local/martus
if [[ ! -f "/usr/local/martus/MartusClient-5.0.2" ]]; then
unzip /tmp/Martus-5.0.2.zip
fi
chmod 644 /usr/local/martus/MartusClient-5.0.2/ThirdParty/icu4j-3.4.4.jar /usr/local/martus/MartusClient-5.0.2/ThirdParty/velocity-dep-1.4.jar
rm -f /tmp/*.deb /tmp/*.zip
umount -f /proc
exit