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