From a343729eaa57284ac42ebec2e65be532f92f73d6 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Mon, 24 Jun 2019 14:18:08 +0200 Subject: [PATCH] update nextcloud server Signed-off-by: Gwenhael Le Moine --- n/nextcloud-server/SlackBuild | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/n/nextcloud-server/SlackBuild b/n/nextcloud-server/SlackBuild index 28041b4d..65ab8394 100755 --- a/n/nextcloud-server/SlackBuild +++ b/n/nextcloud-server/SlackBuild @@ -3,6 +3,7 @@ CWD=$(pwd) PRGNAM=$(basename $CWD) +RELEASE_TYPE=${RELEASE_TYPE:-releases} VERSION=${VERSION:-stable} ARCH="noarch" # hardcode ARCH BUILD=${BUILD:-1} @@ -27,7 +28,7 @@ mkdir -p $TMP $OUTPUT $PKG/$VHOSTROOT case $VERSION in "stable") - wget -c https://download.nextcloud.com/server/releases/latest.tar.bz2 -O $CWD/nextcloud.tar.bz2 + wget -c https://download.nextcloud.com/server/${RELEASE_TYPE}/latest.tar.bz2 -O $CWD/nextcloud.tar.bz2 ;; "master") @@ -35,7 +36,7 @@ case $VERSION in ;; *) - [ ! -e $CWD/nextcloud-$VERSION.tar.bz2 ] && wget -c https://download.nextcloud.com/server/releases/nextcloud-$VERSION.tar.bz2 -O $CWD/nextcloud.tar.bz2 + [ ! -e $CWD/nextcloud-$VERSION.tar.bz2 ] && wget -c https://download.nextcloud.com/server/${RELEASE_TYPE}/nextcloud-$VERSION.tar.bz2 -O $CWD/nextcloud.tar.bz2 ;; esac