mirror of
https://github.com/bokysan/docker-postfix.git
synced 2025-09-04 05:25:54 +08:00
Fix run error: dependency missing
This commit is contained in:
parent
5776119ef3
commit
b6eaa3e838
2 changed files with 9 additions and 3 deletions
|
@ -17,7 +17,7 @@ do_ubuntu() {
|
|||
apt-get install -y libsasl2-modules
|
||||
apt-get install -y postfix
|
||||
apt-get install -y opendkim
|
||||
apt-get install -y ca-certificates tzdata supervisor rsyslog bash opendkim-tools curl libcurl4 postfix-lmdb netcat
|
||||
apt-get install -y ca-certificates tzdata supervisor rsyslog bash opendkim-tools curl libcurl4 libjsoncpp1 postfix-lmdb netcat
|
||||
}
|
||||
|
||||
if [ -f /etc/alpine-release ]; then
|
||||
|
|
|
@ -6,9 +6,15 @@ do_build() {
|
|||
cd /sasl-xoauth2
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -DCMAKE_INSTALL_PREFIX=/ ..
|
||||
if [ -f /etc/alpine-release ]; then
|
||||
cmake -DCMAKE_INSTALL_PREFIX=/ ..
|
||||
else
|
||||
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
|
||||
fi
|
||||
make
|
||||
make install
|
||||
install ../scripts/postfix-sasl-xoauth2-update-ca-certs /etc/ca-certificates/update.d
|
||||
update-ca-certificates
|
||||
}
|
||||
|
||||
if [ -f /etc/alpine-release ]; then
|
||||
|
@ -18,7 +24,7 @@ if [ -f /etc/alpine-release ]; then
|
|||
else
|
||||
. /etc/lsb-release
|
||||
apt-get update -y -qq
|
||||
LIBS="git build-essential cmake pkg-config libcurl4 libcurl4-openssl-dev libssl-dev libjsoncpp-dev libsasl2-dev"
|
||||
LIBS="git build-essential cmake pkg-config libcurl4-openssl-dev libssl-dev libjsoncpp-dev libsasl2-dev"
|
||||
apt-get install -y --no-install-recommends ${LIBS}
|
||||
do_build
|
||||
apt-get remove --purge -y ${LIBS}
|
||||
|
|
Loading…
Add table
Reference in a new issue