Skip to content

Commit

Permalink
fix installation paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightning- committed Feb 21, 2024
1 parent b724d58 commit 42a9ece
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@
$source_url = "${onetimesecret::download_url}/${filename}"

# Construct target paths and filenames.
$archive_target = "${onetimesecret::install_dir}/${filename}"
$install_target = "${onetimesecret::install_dir}/onetimesecret-${version}"
$archive_target = $version ? {
/^v(\d+\..*)$/ => "${onetimesecret::install_dir}/onetimesecret-${1}.tar.gz",
default => "${onetimesecret::install_dir}/onetimesecret-${filename}",
}
$install_target = $version ? {
/^v(\d+\..*)$/ => "${onetimesecret::install_dir}/onetimesecret-${1}",
default => "${onetimesecret::install_dir}/onetimesecret-${version}",
}

# We won't be able to build the app without these packages.
if ( $onetimesecret::manage_additional_packages == true ) {
Expand Down

0 comments on commit 42a9ece

Please sign in to comment.