Skip to content

Commit

Permalink
updated python setup script for new geckodriver release
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisTruncer committed Oct 20, 2022
1 parent 18a874a commit 24e2bba
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 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.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'
geckodriver_x86_64='https://github.com/mozilla/geckodriver/releases/download/v0.32.0/geckodriver-v0.32.0-linux64.tar.gz'
geckodriver_x86_32='https://github.com/mozilla/geckodriver/releases/download/v0.32.0/geckodriver-v0.32.0-linux32.tar.gz'

# Setting environment variables
export TERM=linux
Expand Down Expand Up @@ -76,8 +76,8 @@ case ${osinfo} in
MACHINE_TYPE=`uname -m`
if [ ${MACHINE_TYPE} == 'x86_64' ]; then
wget ${geckodriver_x86_64}
tar -xvf geckodriver-v0.31.0-linux64.tar.gz
rm geckodriver-v0.31.0-linux64.tar.gz
tar -xvf geckodriver-v0.32.0-linux64.tar.gz
rm geckodriver-v0.32.0-linux64.tar.gz
mv geckodriver /usr/sbin
if [ -e /usr/bin/geckodriver ]
then
Expand All @@ -86,8 +86,8 @@ case ${osinfo} in
ln -s /usr/sbin/geckodriver /usr/bin/geckodriver
else
wget ${geckodriver_x86_32}
tar -xvf geckodriver-v0.31.0-linux32.tar.gz
rm geckodriver-v0.31.0-linux32.tar.gz
tar -xvf geckodriver-v0.32.0-linux32.tar.gz
rm geckodriver-v0.32.0-linux32.tar.gz
mv geckodriver /usr/sbin
if [ -e /usr/bin/geckodriver ]
then
Expand All @@ -114,8 +114,8 @@ case ${osinfo} in
MACHINE_TYPE=`uname -m`
if [ ${MACHINE_TYPE} == 'x86_64' ]; then
wget ${geckodriver_x86_64}
tar -xvf geckodriver-v0.31.0-linux64.tar.gz
rm geckodriver-v0.31.0-linux64.tar.gz
tar -xvf geckodriver-v0.32.0-linux64.tar.gz
rm geckodriver-v0.32.0-linux64.tar.gz
mv geckodriver /usr/sbin
if [ -e /usr/bin/geckodriver ]
then
Expand All @@ -124,8 +124,8 @@ case ${osinfo} in
ln -s /usr/sbin/geckodriver /usr/bin/geckodriver
else
wget ${geckodriver_x86_32}
tar -xvf geckodriver-v0.31.0-linux32.tar.gz
rm geckodriver-v0.31.0-linux32.tar.gz
tar -xvf geckodriver-v0.32.0-linux32.tar.gz
rm geckodriver-v0.32.0-linux32.tar.gz
mv geckodriver /usr/sbin
if [ -e /usr/bin/geckodriver ]
then
Expand All @@ -152,8 +152,8 @@ case ${osinfo} in
MACHINE_TYPE=`uname -m`
if [ ${MACHINE_TYPE} == 'x86_64' ]; then
wget ${geckodriver_x86_64}
tar -xvf geckodriver-v0.31.0-linux64.tar.gz
rm geckodriver-v0.31.0-linux64.tar.gz
tar -xvf geckodriver-v0.32.0-linux64.tar.gz
rm geckodriver-v0.32.0-linux64.tar.gz
mv geckodriver /usr/sbin
if [ -e /usr/bin/geckodriver ]
then
Expand All @@ -162,8 +162,8 @@ case ${osinfo} in
ln -s /usr/sbin/geckodriver /usr/bin/geckodriver
else
wget ${geckodriver_x86_32}
tar -xvf geckodriver-v0.31.0-linux32.tar.gz
rm geckodriver-v0.31.0-linux32.tar.gz
tar -xvf geckodriver-v0.32.0-linux32.tar.gz
rm geckodriver-v0.32.0-linux32.tar.gz
mv geckodriver /usr/sbin
if [ -e /usr/bin/geckodriver ]
then
Expand All @@ -190,8 +190,8 @@ case ${osinfo} in
MACHINE_TYPE=`uname -m`
if [ ${MACHINE_TYPE} == 'x86_64' ]; then
wget ${geckodriver_x86_64}
tar -xvf geckodriver-v0.31.0-linux64.tar.gz
rm geckodriver-v0.31.0-linux64.tar.gz
tar -xvf geckodriver-v0.32.0-linux64.tar.gz
rm geckodriver-v0.32.0-linux64.tar.gz
mv geckodriver /usr/sbin
if [ -e /usr/bin/geckodriver ]
then
Expand All @@ -200,8 +200,8 @@ case ${osinfo} in
ln -s /usr/sbin/geckodriver /usr/bin/geckodriver
else
wget ${geckodriver_x86_32}
tar -xvf geckodriver-v0.31.0-linux32.tar.gz
rm geckodriver-v0.31.0-linux32.tar.gz
tar -xvf geckodriver-v0.32.0-linux32.tar.gz
rm geckodriver-v0.32.0-linux32.tar.gz
mv geckodriver /usr/sbin
if [ -e /usr/bin/geckodriver ]
then
Expand Down Expand Up @@ -229,8 +229,8 @@ case ${osinfo} in
MACHINE_TYPE=`uname -m`
if [ ${MACHINE_TYPE} == 'x86_64' ]; then
wget ${geckodriver_x86_64}
tar -xvf geckodriver-v0.31.0-linux64.tar.gz
rm geckodriver-v0.31.0-linux64.tar.gz
tar -xvf geckodriver-v0.32.0-linux64.tar.gz
rm geckodriver-v0.32.0-linux64.tar.gz
mv geckodriver /usr/sbin
if [ -e /usr/bin/geckodriver ]
then
Expand All @@ -239,8 +239,8 @@ case ${osinfo} in
ln -s /usr/sbin/geckodriver /usr/bin/geckodriver
else
wget ${geckodriver_x86_32}
tar -xvf geckodriver-v0.31.0-linux32.tar.gz
rm geckodriver-v0.31.0-linux32.tar.gz
tar -xvf geckodriver-v0.32.0-linux32.tar.gz
rm geckodriver-v0.32.0-linux32.tar.gz
mv geckodriver /usr/sbin
if [ -e /usr/bin/geckodriver ]
then
Expand Down Expand Up @@ -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.31.0-linux64.tar.gz
rm geckodriver-v0.31.0-linux64.tar.gz
tar -xvf geckodriver-v0.32.0-linux64.tar.gz
rm geckodriver-v0.32.0-linux64.tar.gz
mv geckodriver /usr/bin
else
wget ${geckodriver_x86_32}
tar -xvf geckodriver-v0.31.0-linux32.tar.gz
rm geckodriver-v0.31.0-linux32.tar.gz
tar -xvf geckodriver-v0.32.0-linux32.tar.gz
rm geckodriver-v0.32.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.31.0-linux64.tar.gz -C /usr/bin
rm geckodriver-v0.31.0-linux64.tar.gz
tar -xvf geckodriver-v0.32.0-linux64.tar.gz -C /usr/bin
rm geckodriver-v0.32.0-linux64.tar.gz
else
wget ${geckodriver_x86_32}
tar -xvf geckodriver-v0.31.0-linux32.tar.gz -C /usr/bin
rm geckodriver-v0.31.0-linux32.tar.gz
tar -xvf geckodriver-v0.32.0-linux32.tar.gz -C /usr/bin
rm geckodriver-v0.32.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.31.0-linux64.tar.gz
rm -f geckodriver-v0.31.0-linux64.tar.gz
tar -xvf geckodriver-v0.32.0-linux64.tar.gz
rm -f geckodriver-v0.32.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.31.0-linux32.tar.gz
rm -f geckodriver-v0.31.0-linux32.tar.gz
tar -xvf geckodriver-v0.32.0-linux32.tar.gz
rm -f geckodriver-v0.32.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.31.0-linux64.tar.gz
rm -f geckodriver-v0.31.0-linux64.tar.gz
tar -xvf geckodriver-v0.32.0-linux64.tar.gz
rm -f geckodriver-v0.32.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.31.0-linux32.tar.gz
rm -f geckodriver-v0.31.0-linux32.tar.gz
tar -xvf geckodriver-v0.32.0-linux32.tar.gz
rm -f geckodriver-v0.32.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.31.0-linux64.tar.gz
rm geckodriver-v0.31.0-linux64.tar.gz
tar -xvf geckodriver-v0.32.0-linux64.tar.gz
rm geckodriver-v0.32.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.31.0-linux32.tar.gz
rm geckodriver-v0.31.0-linux32.tar.gz
tar -xvf geckodriver-v0.32.0-linux32.tar.gz
rm geckodriver-v0.32.0-linux32.tar.gz
mv geckodriver /usr/sbin
if [ -e /usr/bin/geckodriver ]
then
Expand Down

0 comments on commit 24e2bba

Please sign in to comment.