Skip to content

Commit 8273756

Browse files
anoopcs9phlogistonjohn
authored andcommitted
images/server: Reflect the plural nature of install_custom_repo
Signed-off-by: Anoop C S <[email protected]>
1 parent dd63c16 commit 8273756

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

images/server/Containerfile.centos

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ARG INSTALL_PACKAGES_FROM=default
33
ARG SAMBA_VERSION_SUFFIX=""
44
ARG SAMBACC_VERSION_SUFFIX=""
55
ARG SAMBA_SPECIFICS=daemon_cli_debug_output,ctdb_leader_admin_command
6-
ARG INSTALL_CUSTOM_REPO=
6+
ARG INSTALL_CUSTOM_REPOS=
77
ARG PACKAGE_SELECTION=
88

99
MAINTAINER John Mulligan <[email protected]>
@@ -19,7 +19,7 @@ COPY install-packages.sh /usr/local/bin/install-packages.sh
1919
RUN /usr/local/bin/install-packages.sh \
2020
"--install-packages-from=${INSTALL_PACKAGES_FROM}" \
2121
"--samba-version-suffix=${SAMBA_VERSION_SUFFIX}" \
22-
"--install-custom-repo=${INSTALL_CUSTOM_REPO}" \
22+
"--install-custom-repos=${INSTALL_CUSTOM_REPOS}" \
2323
"--package-selection=${PACKAGE_SELECTION}"
2424

2525
# If you want to install a custom version of sambacc into this image mount

images/server/install-packages.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ need_curl() {
1010
dnf install --setopt=install_weak_deps=False -y /usr/bin/curl
1111
}
1212

13-
get_custom_repo() {
13+
get_custom_repos() {
1414
if [[ -n $1 ]]; then
1515
need_curl
1616
for url in $1; do
@@ -55,7 +55,7 @@ EOF
5555
}
5656

5757
get_samba_nightly_repo() {
58-
get_custom_repo "https://artifacts.ci.centos.org/samba/pkgs/master/${OS_BASE}/samba-nightly-master.repo"
58+
get_custom_repos "https://artifacts.ci.centos.org/samba/pkgs/master/${OS_BASE}/samba-nightly-master.repo"
5959
}
6060

6161
get_sig_samba_repo() {
@@ -93,7 +93,7 @@ if [[ "$1" =~ ^--.+$ ]]; then
9393
case "$arg" in
9494
--install-packages-from=*) install_packages_from="${arg/*=/}" ;;
9595
--samba-version-suffix=*) samba_version_suffix="${arg/*=/}" ;;
96-
--install-custom-repo=*) install_custom_repo="${arg/*=/}" ;;
96+
--install-custom-repos=*) install_custom_repos="${arg/*=/}" ;;
9797
--package-selection=*) package_selection="${arg/*=/}" ;;
9898
*)
9999
echo "error: unexpected argument: ${arg}"
@@ -105,7 +105,7 @@ else
105105
# legacy positional only
106106
install_packages_from="$1"
107107
samba_version_suffix="$2"
108-
install_custom_repo="$3"
108+
install_custom_repos="$3"
109109
package_selection="$4"
110110
fi
111111

@@ -126,12 +126,12 @@ case "${install_packages_from}" in
126126
get_ceph_shaman_repo
127127
package_selection=${package_selection:-devbuilds}
128128
;;
129-
custom-repo)
130-
get_custom_repo "${install_custom_repo}"
129+
custom-repos)
130+
get_custom_repos "${install_custom_repos}"
131131
package_selection=${package_selection:-custom}
132132
;;
133133
custom-devbuilds)
134-
get_custom_repo "${install_custom_repo}"
134+
get_custom_repos "${install_custom_repos}"
135135
get_ceph_shaman_repo
136136
package_selection=${package_selection:-custom-devbuilds}
137137
;;

0 commit comments

Comments
 (0)