Skip to content

Commit 8a5aed2

Browse files
committed
Fix: Use libcurl4t64 where available, otherwise use libcurl4.
1 parent 1fcc023 commit 8a5aed2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build-scripts/postfix-install.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ do_ubuntu() {
2323
apt-get install -y libsasl2-modules sasl2-bin
2424
apt-get install -y postfix postfix-pcre postfix-ldap
2525
apt-get install -y opendkim
26-
apt-get install -y ca-certificates tzdata supervisor rsyslog bash opendkim-tools curl libcurl4t64 libjsoncpp25 sasl2-bin postfix-lmdb procps logrotate cron net-tools colorized-logs netcat-openbsd ${RELEASE_SPECIFIC_PACKAGES}
26+
local libcurl="libcurl4"
27+
if "$(apt-cache search --names-only '^libcurl4t64$')" != ""; then
28+
libcurl="libcurl4t64"
29+
fi
30+
apt-get install -y ca-certificates tzdata supervisor rsyslog bash opendkim-tools curl ${libcurl} libjsoncpp25 sasl2-bin postfix-lmdb procps logrotate cron net-tools colorized-logs netcat-openbsd ${RELEASE_SPECIFIC_PACKAGES}
2731
apt-get clean
2832
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
2933
}

0 commit comments

Comments
 (0)