Skip to content

Commit

Permalink
[telluride] dont perform apt commands if running from docker image
Browse files Browse the repository at this point in the history
those dependencies have already been installed when creating the image
  • Loading branch information
frostwire committed Apr 11, 2021
1 parent 61b2895 commit 55369fb
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions telluride/configure_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ PYINSTALLER_PACKAGE='pyinstaller'
TRUE=0
FALSE=1

isdocker() {
if [ -f /.dockerenv ]
then
return ${TRUE}
fi
return ${FALSE}
}

isubuntu() {
if [ $(uname -a | grep -c Ubuntu) == 0 ]
then
Expand All @@ -43,10 +51,10 @@ iswindows() {
fi
}

if isubuntu
then
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10
if ! isdocker -a isubuntu
then
sudo apt-get install python3 python3-pip pylint3
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10
PYINSTALLER_PACKAGE='PyInstaller'
fi

Expand Down

0 comments on commit 55369fb

Please sign in to comment.