Don't install python2 for Debian

Change-Id: Ia82c89e08a7fe647b247078610d4a1775a7b2599
This commit is contained in:
Dmitriy Rabotyagov
2019-11-20 16:28:09 +02:00
committed by Dmitriy Rabotyagov (noonedeadpunk)
parent 384ae93a9b
commit e46d1ebe20

View File

@@ -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