From e3aa4a449a5aa464edb754f667bed6928c8adb9e Mon Sep 17 00:00:00 2001 From: Michael Schaar Date: Tue, 16 Jul 2024 11:39:21 +0200 Subject: [PATCH] No Python3.9 --- Vagrantfile | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index fa455c3..d7a8c65 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -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