From c3429ebbab590f07a734f58ea13d2e4048aa68d0 Mon Sep 17 00:00:00 2001 From: thorstenspille Date: Mon, 12 Jul 2021 21:06:16 +0200 Subject: [PATCH] Piler version fix --- src/mailpiler/install-service.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mailpiler/install-service.sh b/src/mailpiler/install-service.sh index f3c7460..e557b5d 100644 --- a/src/mailpiler/install-service.sh +++ b/src/mailpiler/install-service.sh @@ -61,8 +61,8 @@ chmod 755 /var/piler 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) + PILER_VERSION=$(echo $URL | cut -d'-' -f2 | cut -d'.' -f1-3) wget -O piler-$PILER_VERSION.tar.gz $URL - PILER_VERSION=$(ls piler-* | cut -d'-' -f2 | cut -d'.' -f1-3) else wget https://bitbucket.org/jsuto/piler/downloads/piler-$PILER_VERSION.tar.gz fi