don't redownload python
This commit is contained in:
50
install.sh
50
install.sh
@@ -39,19 +39,21 @@ done
|
||||
################################################################################
|
||||
echo -e "Installing Sqlite3"
|
||||
|
||||
# fetch Sqlite
|
||||
wget -O sqlite.tar.gz $sqlink 1> $pylogloc 2>> $pylogloc 3>> $pylogloc
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo -e "Failed to fetch sqlite, make sure wget is installed and $pylink is what you're after. $pylogmsg"
|
||||
exit 1
|
||||
fi
|
||||
if [ ! -d sqlite ] ; then
|
||||
# fetch Sqlite
|
||||
wget -O sqlite.tar.gz $sqlink 1> $pylogloc 2>> $pylogloc 3>> $pylogloc
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo -e "Failed to fetch sqlite, make sure wget is installed and $pylink is what you're after. $pylogmsg"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir sqlite
|
||||
tar xf sqlite.tar.gz -C sqlite --strip-components=1 1>> $pylogloc 2>> $pylogloc 3>> $pylogloc
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo -e "Failed to unzip sqlite. $pylogmsg"
|
||||
exit 1
|
||||
fi
|
||||
mkdir sqlite
|
||||
tar xf sqlite.tar.gz -C sqlite --strip-components=1 1>> $pylogloc 2>> $pylogloc 3>> $pylogloc
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo -e "Failed to unzip sqlite. $pylogmsg"
|
||||
exit 1
|
||||
fi
|
||||
fi;
|
||||
|
||||
cd sqlite
|
||||
if [ $? -ne 0 ] ; then
|
||||
@@ -83,7 +85,6 @@ fi
|
||||
|
||||
cd ..
|
||||
rm sqlite.tar.gz 1>> $pylogloc 2>> $pylogloc
|
||||
rm -rf sqlite 1>> $pylogloc 2>> $pylogloc
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo -e "Failed to remove Sqlite install files. $pylogmsg"
|
||||
fi
|
||||
@@ -94,17 +95,19 @@ fi
|
||||
################################################################################
|
||||
echo -e "Installing Python"
|
||||
|
||||
wget -O python.tar.gz $pylink 1> $pylogloc 2>> $pylogloc 3>> $pylogloc
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo -e "Failed to fetch python, make sure wget is installed and $pylink is what you're after. $pylogmsg"
|
||||
exit 1
|
||||
fi
|
||||
if [ ! -d python ] ; then
|
||||
wget -O python.tar.gz $pylink 1> $pylogloc 2>> $pylogloc 3>> $pylogloc
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo -e "Failed to fetch python, make sure wget is installed and $pylink is what you're after. $pylogmsg"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir python
|
||||
tar xf python.tar.gz -C python --strip-components=1 1>> $pylogloc 2>> $pylogloc 3>> $pylogloc
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo -e "Failed to unzip python. $pylogmsg"
|
||||
exit 1
|
||||
mkdir python
|
||||
tar xf python.tar.gz -C python --strip-components=1 1>> $pylogloc 2>> $pylogloc 3>> $pylogloc
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo -e "Failed to unzip python. $pylogmsg"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
cd python
|
||||
@@ -152,7 +155,6 @@ fi
|
||||
|
||||
cd ..
|
||||
rm python.tar.gz 1>> $pylogloc 2>> $pylogloc
|
||||
rm -rf python 1>> $pylogloc 2>> $pylogloc
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo -e "Failed to remove Python install files. $pylogmsg"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user