Vagrantfile mit python3.9
This commit is contained in:
		
							parent
							
								
									a8737b8111
								
							
						
					
					
						commit
						e9a8b8a467
					
				| 
						 | 
					@ -119,5 +119,20 @@ Vagrant.configure("2") do |config|
 | 
				
			||||||
    echo "Administratorpass: passw0rd"
 | 
					    echo "Administratorpass: passw0rd"
 | 
				
			||||||
    echo "Beispieluser: example_user"
 | 
					    echo "Beispieluser: example_user"
 | 
				
			||||||
    echo "Beispieluser: passw0rd"
 | 
					    echo "Beispieluser: passw0rd"
 | 
				
			||||||
 | 
					    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 "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
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    echo "Installation abgeschlossen."
 | 
				
			||||||
  SHELL
 | 
					  SHELL
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue