Skip to content

Commit 2f7423e

Browse files
ad-server: support taking a samba version suffix value
The package install script can use this value to "pin" a desired samba version. Signed-off-by: John Mulligan <[email protected]>
1 parent 0c56fe3 commit 2f7423e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

images/ad-server/install-packages.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@ get_custom_repo() {
1111
}
1212

1313
install_packages_from="$1"
14+
samba_version_suffix="$2"
1415
case "${install_packages_from}" in
1516
samba-nightly)
17+
# unset version suffix for nightly builds
18+
samba_version_suffix=""
1619
get_custom_repo "http://artifacts.ci.centos.org/samba/pkgs/master/fedora/samba-nightly-master.repo"
1720
;;
1821
custom-repo)
@@ -26,7 +29,7 @@ dnf install --setopt=install_weak_deps=False -y \
2629
python3-jsonschema \
2730
python3-samba \
2831
python3-pyxattr \
29-
samba-dc \
32+
"samba-dc${samba_version_suffix}" \
3033
procps-ng \
3134
/usr/bin/smbclient
3235
dnf clean all

0 commit comments

Comments
 (0)