mirror of
https://codeberg.org/gwh/slackbuilds.git
synced 2024-11-16 19:51:19 +01:00
update nextcloud server
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
This commit is contained in:
parent
94806aff1d
commit
a343729eaa
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue