Compare commits

..

No commits in common. "2ba33ad5d645299bf3c0fa5c31fef4b481673828" and "689c625b90cee0f15bc96006e5af703284ad1547" have entirely different histories.

View file

@ -81,14 +81,8 @@ class sunetdrive::script (
provider => apt, provider => apt,
} }
$drive_version = '0.3.1' $drive_version = '0.3.1'
if $facts['os']['name'] == 'Debian' {
$pip_cmd = 'pip3 install --break-system-packages'
} else {
$pip_cmd = 'python3 -m pip install'
}
exec { 'drive-utils': exec { 'drive-utils':
command => "${pip_cmd} https://pypi.sunet.se/packages/drive-utils-${drive_version}.tar.gz", command => "python3 -m pip install --break-system-packages https://pypi.sunet.se/packages/drive-utils-${drive_version}.tar.gz",
unless => "python3 -m pip list | grep drive-utils | grep ${drive_version}", unless => "python3 -m pip list | grep drive-utils | grep ${drive_version}",
require => Package['python3'], require => Package['python3'],
} }