No Python3.9

This commit is contained in:
Michael Schaar 2024-07-16 11:39:21 +02:00
parent 2071f665d4
commit e3aa4a449a
1 changed files with 20 additions and 20 deletions

40
Vagrantfile vendored
View File

@ -10,7 +10,7 @@ Vagrant.require_version '>= 1.8.4'
# you're doing.
Vagrant.configure("2") do |config|
# Taken from https://github.com/gantsign/development-environment/blob/master/Vagrantfile
required_plugins = %w[vagrant-readenv]
required_plugins = %w[vagrant-readenv vagrant-reload]
plugins_to_install = required_plugins.reject { |plugin| Vagrant.has_plugin? plugin }
unless plugins_to_install.empty?
puts "Installing plugins: #{plugins_to_install.join(' ')}"
@ -119,29 +119,29 @@ Vagrant.configure("2") do |config|
echo "Administratorpass: passw0rd"
echo "Beispieluser: example_user"
echo "Beispieluser: passw0rd"
if ! command -v python3.9 &> /dev/null; then
echo "Python 3.9 ist nicht installiert."
sudo apt-get update
#if ! command -v python3.9 &> /dev/null; then
# echo "Python 3.9 ist nicht installiert."
# sudo apt-get update
echo "Installiere Python 3.9..."
apt-get install -y python3.9
fi
# echo "Installiere Python 3.9..."
# apt-get install -y python3.9
#fi
echo "Stelle Python 3.9 als Standard-Version ein..."
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1
#echo "Stelle Python 3.9 als Standard-Version ein..."
#update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1
# Konfiguriere Python 3.9 als Standard
update-alternatives --config python3
#update-alternatives --config python3
python3.8 -m pip uninstall -y docker-compose
if [ -d /home/vagrant/IOTstack ]
then
echo Verzeichnis vorhanden.
else
git clone https://github.com/SensorsIot/IOTstack.git
fi
#/home/vagrant/IOTstack/install.sh
echo "Installation abgeschlossen."
#python3.8 -m pip uninstall -y docker-compose
#if [ -d /home/vagrant/IOTstack ]
#then
# echo Verzeichnis vorhanden.
#else
# git clone https://github.com/SensorsIot/IOTstack.git
# su - vagrant -c 'bash /home/vagrant/IOTstack/install.sh'
#fi
#echo "Installation abgeschlossen."
SHELL
config.vm.provision :reload
end