-
Notifications
You must be signed in to change notification settings - Fork 5
/
install.sh
40 lines (30 loc) · 918 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
32
33
34
35
36
37
38
#!/bin/bash
set -e
rm -rf /opt/webex-firefox
mkdir /opt/webex-firefox
FIREFOX_TAR_FILE=`ls /root/resources/firefox*`
JRE_FILE=`ls /root/resources/jre*`
echo "FIREFOX: $FIREFOX_TAR_FILE, JRE: $JRE_FILE"
cp $FIREFOX_TAR_FILE /opt/webex-firefox/
cp $JRE_FILE /opt/webex-firefox/
cd /opt/webex-firefox
#unpack
tar xfj $FIREFOX_TAR_FILE
tar xfz $JRE_FILE
rm firefox*.tar.bz2
rm jre*.tar.gz
mv jre* java
#create symlink for java plugin
cd firefox/browser
mkdir plugins
cd plugins
ln -s ../../../java/lib/i386/libnpjp2.so .
cd ../../../
#create a starter script, as we need java command from our setup
echo "#!/bin/sh" > startfirefox
echo "export PATH=\"$(pwd)/java/bin:$PATH\"" >> startfirefox
echo "export PULSE_SERVER=/tmp/webexpulsesocket" >> startfirefox
echo "$(pwd)/firefox/firefox" >> startfirefox
chmod +x startfirefox
mv startfirefox /usr/local/bin/startfirefox
echo "Run /opt/webex-firefox/startfirefox"