File tree Expand file tree Collapse file tree 3 files changed +14
-25
lines changed Expand file tree Collapse file tree 3 files changed +14
-25
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33# PT_* variables are set by Bolt.
4- # shellcheck disable=SC2154
5- installdir=$PT__installdir
4+ declare PT__installdir
65
76tempdir=$( mktemp -d)
87trap ' rm -rf $tempdir' EXIT
@@ -210,7 +209,7 @@ set_os_family() {
210209# $os_major_version
211210# $os_family
212211set_platform_globals () {
213- local facts=" ${installdir } /facts/tasks/bash.sh"
212+ local facts=" ${PT__installdir } /facts/tasks/bash.sh"
214213 if [ -e " ${facts} " ]; then
215214 platform=$( bash " ${facts} " platform)
216215 os_full_version=$( bash " ${facts} " release)
Original file line number Diff line number Diff line change 33set -e
44
55# PT_* variables are set by Bolt.
6- # shellcheck disable=SC2154
7- installdir=$PT__installdir
8- # shellcheck disable=SC2154
9- version=${PT_version}
10- # shellcheck disable=SC2154
11- package=${PT_package:- ' openvox-agent' }
12- # shellcheck disable=SC2154
13- artifacts_source=${PT_artifacts_source:- ' https://artifacts.voxpupuli.org' }
6+ declare PT__installdir
7+ version=${PT_version:- }
8+ package=${PT_package:- openvox-agent}
9+ artifacts_source=${PT_artifacts_source:- https:// artifacts.voxpupuli.org}
1410
1511# shellcheck source=files/common.sh
16- source " ${installdir } /openvox_bootstrap/files/common.sh"
12+ source " ${PT__installdir } /openvox_bootstrap/files/common.sh"
1713
1814# Lookup the cpu architecture and set it as cpu_arch.
1915# Translates x86_64 to amd64 and aarch64 to arm64 for debian/ubuntu.
Original file line number Diff line number Diff line change 33set -e
44
55# PT_* variables are set by Bolt.
6- # shellcheck disable=SC2154
7- installdir=$PT__installdir
8- # shellcheck disable=SC2154
9- package=${PT_package:- ' openvox-agent' }
10- # shellcheck disable=SC2154
11- version=${PT_version:- ' latest' }
12- # shellcheck disable=SC2154
13- collection=${PT_collection:- ' openvox8' }
14- # shellcheck disable=SC2154
15- yum_source=${PT_yum_source:- ' https://yum.voxpupuli.org' }
16- # shellcheck disable=SC2154
17- apt_source=${PT_apt_source:- ' https://apt.voxpupuli.org' }
6+ declare PT__installdir
7+ package=${PT_package:- openvox-agent}
8+ version=${PT_version:- latest}
9+ collection=${PT_collection:- openvox8}
10+ yum_source=${PT_yum_source:- https:// yum.voxpupuli.org}
11+ apt_source=${PT_apt_source:- https:// apt.voxpupuli.org}
1812
1913# shellcheck source=files/common.sh
20- source " ${installdir } /openvox_bootstrap/files/common.sh"
14+ source " ${PT__installdir } /openvox_bootstrap/files/common.sh"
2115
2216# Based on platform family set:
2317# repository - the package repository to download from
You can’t perform that action at this time.
0 commit comments