diff --git a/manifests/script.pp b/manifests/script.pp index 9229c96..10a0bdc 100644 --- a/manifests/script.pp +++ b/manifests/script.pp @@ -72,7 +72,7 @@ class sunetdrive::script ( ensure => installed, provider => apt, } - package { 'python3.9': + package { 'python3': ensure => installed, provider => apt, } @@ -82,9 +82,9 @@ class sunetdrive::script ( } $drive_version = '0.3.1' exec { 'drive-utils': - command => "python3.9 -m pip install https://pypi.sunet.se/packages/drive-utils-${drive_version}.tar.gz", - unless => "python3.9 -m pip list | grep drive-utils | grep ${drive_version}", - require => Package['python3.9'], + command => "python3 -m pip install https://pypi.sunet.se/packages/drive-utils-${drive_version}.tar.gz", + unless => "python3 -m pip list | grep drive-utils | grep ${drive_version}", + require => Package['python3'], } file { '/root/.ssh/': ensure => directory, diff --git a/templates/script/restart-db-cluster.erb b/templates/script/restart-db-cluster.erb index c5ab40a..6ea18ba 100755 --- a/templates/script/restart-db-cluster.erb +++ b/templates/script/restart-db-cluster.erb @@ -1,4 +1,4 @@ -#!/usr/bin/env python3.9 +#!/usr/bin/env python3 # vim: set filetype=python: import subprocess diff --git a/templates/script/restart-nextcloud-farm.erb b/templates/script/restart-nextcloud-farm.erb index d68c8a4..05321a2 100755 --- a/templates/script/restart-nextcloud-farm.erb +++ b/templates/script/restart-nextcloud-farm.erb @@ -1,4 +1,4 @@ -#!/usr/bin/env python3.9 +#!/usr/bin/env python3 # vim: set filetype=python: import subprocess