Use other command in debian
This commit is contained in:
parent
df731fdb44
commit
ed65bb0d94
|
@ -81,8 +81,14 @@ class sunetdrive::script (
|
|||
provider => apt,
|
||||
}
|
||||
$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':
|
||||
command => "python3 -m pip install --break-system-packages https://pypi.sunet.se/packages/drive-utils-${drive_version}.tar.gz",
|
||||
command => "${pip_cmd} 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'],
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue