Don't install python2 for Debian
Change-Id: Ia82c89e08a7fe647b247078610d4a1775a7b2599
This commit is contained in:
committed by
Dmitriy Rabotyagov (noonedeadpunk)
parent
384ae93a9b
commit
e46d1ebe20
@@ -28,7 +28,10 @@
|
||||
register: result
|
||||
raw: |
|
||||
if which apt-get >/dev/null && ! which python >/dev/null ; then
|
||||
apt-get -y install python
|
||||
if ! which python3 >/dev/null ; then
|
||||
apt-get -y install python3
|
||||
fi
|
||||
update-alternatives --install /usr/bin/python python /usr/bin/python3 10
|
||||
exit 2
|
||||
else
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user