Skip to content

Commit d7cdfd0

Browse files
authored
Merge pull request #3 from jpartlow/set-install-script-defaults
(tasks) Set defaults for collection and repos in install_linux.sh
2 parents 31340d5 + 622423a commit d7cdfd0

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

tasks/install.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
"description": "Installs the openvox-agent package.",
33
"parameters": {
44
"version": {
5-
"description": "The version of the openvox-agent package to install. Defaults to latest.",
5+
"description": "TODO The version of the openvox-agent package to install. Defaults to latest.",
66
"type": "Optional[String]"
77
},
88
"collection": {
99
"description": "The openvox collection to install from.",
10-
"type": "String",
10+
"type": "Optional[String]",
1111
"default": "openvox8"
1212
},
1313
"apt_source": {

tasks/install_linux.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ set -e
66
# shellcheck disable=SC2154
77
installdir=$PT__installdir
88
# shellcheck disable=SC2154
9-
collection=$PT_collection
9+
collection=${PT_collection:-'openvox8'}
1010
# shellcheck disable=SC2154
11-
yum_source=$PT_yum_source
11+
yum_source=${PT_yum_source:-'https://yum.overlookinfratech.com'}
1212
# shellcheck disable=SC2154
13-
apt_source=$PT_apt_source
13+
apt_source=${PT_apt_source:-'https://apt.overlookinfratech.com'}
1414

1515
tempdir=$(mktemp -d)
1616
trap 'rm -rf $tempdir' EXIT
@@ -213,6 +213,7 @@ install_release_package() {
213213
esac
214214
}
215215

216+
# TODO add support for the version parameter.
216217
install_package() {
217218
local _package="$1"
218219

0 commit comments

Comments
 (0)