forked from bashclub/zamba-lxc-toolbox
fixed mailpiler script (latest version)
This commit is contained in:
parent
44d093d982
commit
bfcbce84ee
@ -26,6 +26,9 @@ fi
|
|||||||
wget -q https://packages.sury.org/php/apt.gpg -O- | apt-key add -
|
wget -q https://packages.sury.org/php/apt.gpg -O- | apt-key add -
|
||||||
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php.list
|
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php.list
|
||||||
|
|
||||||
|
apt-key adv --fetch-keys 'https://mariadb.org/mariadb_release_signing_key.asc'
|
||||||
|
add-apt-repository 'deb [arch=amd64] https://mirror.wtnet.de/mariadb/repo/10.5/debian buster main'
|
||||||
|
|
||||||
apt update
|
apt update
|
||||||
|
|
||||||
DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt install -y -qq build-essential libwrap0-dev libpst-dev tnef libytnef0-dev \
|
DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt install -y -qq build-essential libwrap0-dev libpst-dev tnef libytnef0-dev \
|
||||||
@ -59,6 +62,7 @@ chmod 755 /var/piler
|
|||||||
if [[ "$PILER_VERSION" == "latest" ]]; then
|
if [[ "$PILER_VERSION" == "latest" ]]; then
|
||||||
URL=$(curl -s https://www.mailpiler.org/wiki/download | grep "https://bitbucket.org/jsuto/piler/downloads/piler-" | cut -d '"' -f2)
|
URL=$(curl -s https://www.mailpiler.org/wiki/download | grep "https://bitbucket.org/jsuto/piler/downloads/piler-" | cut -d '"' -f2)
|
||||||
wget -O piler-$PILER_VERSION.tar.gz $URL
|
wget -O piler-$PILER_VERSION.tar.gz $URL
|
||||||
|
PILER_VERSION=$(ls piler-* | cut -d'-' -f2 | cut -d'.' -f1-3)
|
||||||
else
|
else
|
||||||
wget https://bitbucket.org/jsuto/piler/downloads/piler-$PILER_VERSION.tar.gz
|
wget https://bitbucket.org/jsuto/piler/downloads/piler-$PILER_VERSION.tar.gz
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user