Skip to content

Commit

Permalink
Re-updated python setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisTruncer committed Sep 22, 2022
1 parent c2fbef5 commit 2078de8
Showing 1 changed file with 52 additions and 52 deletions.
104 changes: 52 additions & 52 deletions Python/setup/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ userid=`id -u`
osinfo=`cat /etc/issue|cut -d" " -f1|head -n1`
distinfo=`cat /etc/issue|cut -d" " -f2|head -n1`
eplpkg='http://linux.mirrors.es.net/fedora-epel/6/i386/epel-release-6-8.noarch.rpm'
geckodriver_x86_64='https://github.com/mozilla/geckodriver/releases/download/v0.30.0/geckodriver-v0.30.0-linux64.tar.gz'
geckodriver_x86_32='https://github.com/mozilla/geckodriver/releases/download/v0.30.0/geckodriver-v0.30.0-linux32.tar.gz'
geckodriver_x86_64='https://github.com/mozilla/geckodriver/releases/download/v0.31.0/geckodriver-v0.31.0-linux64.tar.gz'
geckodriver_x86_32='https://github.com/mozilla/geckodriver/releases/download/v0.31.0/geckodriver-v0.31.0-linux32.tar.gz'

# Setting environment variables
export TERM=linux
Expand Down Expand Up @@ -76,22 +76,22 @@ case ${osinfo} in
MACHINE_TYPE=`uname -m`
if [ ${MACHINE_TYPE} == 'x86_64' ]; then
wget ${geckodriver_x86_64}
tar -xvf geckodriver-v0.30.0-linux64.tar.gz
rm geckodriver-v0.30.0-linux64.tar.gz
tar -xvf geckodriver-v0.31.0-linux64.tar.gz
rm geckodriver-v0.31.0-linux64.tar.gz
mv geckodriver /usr/sbin
if [ -e /usr/bin/geckodriver ]
then
rm /usr/bin/geckodriver
rm /usr/bin/geckodriver
fi
ln -s /usr/sbin/geckodriver /usr/bin/geckodriver
else
wget ${geckodriver_x86_32}
tar -xvf geckodriver-v0.30.0-linux32.tar.gz
rm geckodriver-v0.30.0-linux32.tar.gz
tar -xvf geckodriver-v0.31.0-linux32.tar.gz
rm geckodriver-v0.31.0-linux32.tar.gz
mv geckodriver /usr/sbin
if [ -e /usr/bin/geckodriver ]
then
rm /usr/bin/geckodriver
rm /usr/bin/geckodriver
fi
ln -s /usr/sbin/geckodriver /usr/bin/geckodriver
fi
Expand All @@ -114,22 +114,22 @@ case ${osinfo} in
MACHINE_TYPE=`uname -m`
if [ ${MACHINE_TYPE} == 'x86_64' ]; then
wget ${geckodriver_x86_64}
tar -xvf geckodriver-v0.30.0-linux64.tar.gz
rm geckodriver-v0.30.0-linux64.tar.gz
tar -xvf geckodriver-v0.31.0-linux64.tar.gz
rm geckodriver-v0.31.0-linux64.tar.gz
mv geckodriver /usr/sbin
if [ -e /usr/bin/geckodriver ]
then
rm /usr/bin/geckodriver
rm /usr/bin/geckodriver
fi
ln -s /usr/sbin/geckodriver /usr/bin/geckodriver
else
wget ${geckodriver_x86_32}
tar -xvf geckodriver-v0.30.0-linux32.tar.gz
rm geckodriver-v0.30.0-linux32.tar.gz
tar -xvf geckodriver-v0.31.0-linux32.tar.gz
rm geckodriver-v0.31.0-linux32.tar.gz
mv geckodriver /usr/sbin
if [ -e /usr/bin/geckodriver ]
then
rm /usr/bin/geckodriver
rm /usr/bin/geckodriver
fi
ln -s /usr/sbin/geckodriver /usr/bin/geckodriver
fi
Expand All @@ -152,22 +152,22 @@ case ${osinfo} in
MACHINE_TYPE=`uname -m`
if [ ${MACHINE_TYPE} == 'x86_64' ]; then
wget ${geckodriver_x86_64}
tar -xvf geckodriver-v0.30.0-linux64.tar.gz
rm geckodriver-v0.30.0-linux64.tar.gz
tar -xvf geckodriver-v0.31.0-linux64.tar.gz
rm geckodriver-v0.31.0-linux64.tar.gz
mv geckodriver /usr/sbin
if [ -e /usr/bin/geckodriver ]
then
rm /usr/bin/geckodriver
rm /usr/bin/geckodriver
fi
ln -s /usr/sbin/geckodriver /usr/bin/geckodriver
else
wget ${geckodriver_x86_32}
tar -xvf geckodriver-v0.30.0-linux32.tar.gz
rm geckodriver-v0.30.0-linux32.tar.gz
tar -xvf geckodriver-v0.31.0-linux32.tar.gz
rm geckodriver-v0.31.0-linux32.tar.gz
mv geckodriver /usr/sbin
if [ -e /usr/bin/geckodriver ]
then
rm /usr/bin/geckodriver
rm /usr/bin/geckodriver
fi
ln -s /usr/sbin/geckodriver /usr/bin/geckodriver
fi
Expand All @@ -190,22 +190,22 @@ case ${osinfo} in
MACHINE_TYPE=`uname -m`
if [ ${MACHINE_TYPE} == 'x86_64' ]; then
wget ${geckodriver_x86_64}
tar -xvf geckodriver-v0.30.0-linux64.tar.gz
rm geckodriver-v0.30.0-linux64.tar.gz
tar -xvf geckodriver-v0.31.0-linux64.tar.gz
rm geckodriver-v0.31.0-linux64.tar.gz
mv geckodriver /usr/sbin
if [ -e /usr/bin/geckodriver ]
then
rm /usr/bin/geckodriver
rm /usr/bin/geckodriver
fi
ln -s /usr/sbin/geckodriver /usr/bin/geckodriver
else
wget ${geckodriver_x86_32}
tar -xvf geckodriver-v0.30.0-linux32.tar.gz
rm geckodriver-v0.30.0-linux32.tar.gz
tar -xvf geckodriver-v0.31.0-linux32.tar.gz
rm geckodriver-v0.31.0-linux32.tar.gz
mv geckodriver /usr/sbin
if [ -e /usr/bin/geckodriver ]
then
rm /usr/bin/geckodriver
rm /usr/bin/geckodriver
fi
ln -s /usr/sbin/geckodriver /usr/bin/geckodriver
fi
Expand All @@ -229,22 +229,22 @@ case ${osinfo} in
MACHINE_TYPE=`uname -m`
if [ ${MACHINE_TYPE} == 'x86_64' ]; then
wget ${geckodriver_x86_64}
tar -xvf geckodriver-v0.30.0-linux64.tar.gz
rm geckodriver-v0.30.0-linux64.tar.gz
tar -xvf geckodriver-v0.31.0-linux64.tar.gz
rm geckodriver-v0.31.0-linux64.tar.gz
mv geckodriver /usr/sbin
if [ -e /usr/bin/geckodriver ]
then
rm /usr/bin/geckodriver
rm /usr/bin/geckodriver
fi
ln -s /usr/sbin/geckodriver /usr/bin/geckodriver
else
wget ${geckodriver_x86_32}
tar -xvf geckodriver-v0.30.0-linux32.tar.gz
rm geckodriver-v0.30.0-linux32.tar.gz
tar -xvf geckodriver-v0.31.0-linux32.tar.gz
rm geckodriver-v0.31.0-linux32.tar.gz
mv geckodriver /usr/sbin
if [ -e /usr/bin/geckodriver ]
then
rm /usr/bin/geckodriver
rm /usr/bin/geckodriver
fi
ln -s /usr/sbin/geckodriver /usr/bin/geckodriver
fi
Expand All @@ -269,13 +269,13 @@ case ${osinfo} in
MACHINE_TYPE=`uname -m`
if [ ${MACHINE_TYPE} == 'x86_64' ]; then
wget ${geckodriver_x86_64}
tar -xvf geckodriver-v0.30.0-linux64.tar.gz
rm geckodriver-v0.30.0-linux64.tar.gz
tar -xvf geckodriver-v0.31.0-linux64.tar.gz
rm geckodriver-v0.31.0-linux64.tar.gz
mv geckodriver /usr/bin
else
wget ${geckodriver_x86_32}
tar -xvf geckodriver-v0.30.0-linux32.tar.gz
rm geckodriver-v0.30.0-linux32.tar.gz
tar -xvf geckodriver-v0.31.0-linux32.tar.gz
rm geckodriver-v0.31.0-linux32.tar.gz
mv geckodriver /usr/bin
fi
cd ..
Expand Down Expand Up @@ -308,12 +308,12 @@ case ${osinfo} in
MACHINE_TYPE=`uname -m`
if [ ${MACHINE_TYPE} == 'x86_64' ]; then
wget ${geckodriver_x86_64}
tar -xvf geckodriver-v0.30.0-linux64.tar.gz -C /usr/bin
rm geckodriver-v0.30.0-linux64.tar.gz
tar -xvf geckodriver-v0.31.0-linux64.tar.gz -C /usr/bin
rm geckodriver-v0.31.0-linux64.tar.gz
else
wget ${geckodriver_x86_32}
tar -xvf geckodriver-v0.30.0-linux32.tar.gz -C /usr/bin
rm geckodriver-v0.30.0-linux32.tar.gz
tar -xvf geckodriver-v0.31.0-linux32.tar.gz -C /usr/bin
rm geckodriver-v0.31.0-linux32.tar.gz
fi
cd ..
;;
Expand Down Expand Up @@ -344,8 +344,8 @@ case ${osinfo} in
if [ ${MACHINE_TYPE} == 'x86_64' ]; then
#curl because wget is not installed by default
curl ${geckodriver_x86_64} -LO
tar -xvf geckodriver-v0.30.0-linux64.tar.gz
rm -f geckodriver-v0.30.0-linux64.tar.gz
tar -xvf geckodriver-v0.31.0-linux64.tar.gz
rm -f geckodriver-v0.31.0-linux64.tar.gz
mv -f geckodriver /usr/sbin
if [ -e /usr/bin/geckodriver ]
then
Expand All @@ -354,8 +354,8 @@ case ${osinfo} in
ln -s /usr/sbin/geckodriver /usr/bin/geckodriver
else
curl ${geckodriver_x86_32} -LO
tar -xvf geckodriver-v0.30.0-linux32.tar.gz
rm -f geckodriver-v0.30.0-linux32.tar.gz
tar -xvf geckodriver-v0.31.0-linux32.tar.gz
rm -f geckodriver-v0.31.0-linux32.tar.gz
mv -f geckodriver /usr/sbin
if [ -e /usr/bin/geckodriver ]
then
Expand Down Expand Up @@ -394,8 +394,8 @@ case ${osinfo} in
if [ ${MACHINE_TYPE} == 'x86_64' ]; then
#curl because wget is not installed by default
curl ${geckodriver_x86_64} -LO
tar -xvf geckodriver-v0.30.0-linux64.tar.gz
rm -f geckodriver-v0.30.0-linux64.tar.gz
tar -xvf geckodriver-v0.31.0-linux64.tar.gz
rm -f geckodriver-v0.31.0-linux64.tar.gz
mv -f geckodriver /usr/sbin
if [ -e /usr/bin/geckodriver ]
then
Expand All @@ -404,8 +404,8 @@ case ${osinfo} in
ln -s /usr/sbin/geckodriver /usr/bin/geckodriver
else
curl ${geckodriver_x86_32} -LO
tar -xvf geckodriver-v0.30.0-linux32.tar.gz
rm -f geckodriver-v0.30.0-linux32.tar.gz
tar -xvf geckodriver-v0.31.0-linux32.tar.gz
rm -f geckodriver-v0.31.0-linux32.tar.gz
mv -f geckodriver /usr/sbin
if [ -e /usr/bin/geckodriver ]
then
Expand Down Expand Up @@ -439,8 +439,8 @@ case ${osinfo} in
MACHINE_TYPE=`uname -m`
if [ ${MACHINE_TYPE} == 'x86_64' ]; then
wget ${geckodriver_x86_64}
tar -xvf geckodriver-v0.30.0-linux64.tar.gz
rm geckodriver-v0.30.0-linux64.tar.gz
tar -xvf geckodriver-v0.31.0-linux64.tar.gz
rm geckodriver-v0.31.0-linux64.tar.gz
mv geckodriver /usr/sbin
if [ -e /usr/bin/geckodriver ]
then
Expand All @@ -449,8 +449,8 @@ case ${osinfo} in
ln -s /usr/sbin/geckodriver /usr/bin/geckodriver
else
wget ${geckodriver_x86_32}
tar -xvf geckodriver-v0.30.0-linux32.tar.gz
rm geckodriver-v0.30.0-linux32.tar.gz
tar -xvf geckodriver-v0.31.0-linux32.tar.gz
rm geckodriver-v0.31.0-linux32.tar.gz
mv geckodriver /usr/sbin
if [ -e /usr/bin/geckodriver ]
then
Expand Down

0 comments on commit 2078de8

Please sign in to comment.