mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-05 00:27:25 +00:00
support nextcloud release candidate downloads
This commit is contained in:
parent
ee1ffbdb21
commit
05b135ba73
@ -294,13 +294,24 @@ get_nc_download_url() {
|
|||||||
|
|
||||||
if [ -z "$url" ]; then
|
if [ -z "$url" ]; then
|
||||||
if [ -z "$ver" ]; then
|
if [ -z "$ver" ]; then
|
||||||
url="https://download.nextcloud.com/server/releases/${REQUIRED_NC_FOR_FRESH_INSTALLS:-latest}.${ext#.}"
|
ver=${REQUIRED_NC_FOR_FRESH_INSTALLS:-latest}
|
||||||
url_cache_id="${REQUIRED_NC_FOR_FRESH_INSTALLS:-latest}.${ext#.}"
|
fi
|
||||||
|
|
||||||
|
case "$ver" in
|
||||||
|
latest )
|
||||||
|
url="https://download.nextcloud.com/server/releases/latest.${ext#.}"
|
||||||
|
url_cache_id="latest.${ext#.}"
|
||||||
|
;;
|
||||||
|
|
||||||
else
|
*rc* )
|
||||||
url="https://download.nextcloud.com/server/releases/nextcloud-${ver}.${ext#.}"
|
url="https://download.nextcloud.com/server/prereleases/nextcloud-${ver}.${ext#.}"
|
||||||
url_cache_id="nextcloud-${ver}.${ext#.}"
|
url_cache_id="nextcloud-${ver}.${ext#.}"
|
||||||
fi
|
;;
|
||||||
|
|
||||||
|
* )
|
||||||
|
url="https://download.nextcloud.com/server/releases/nextcloud-${ver}.${ext#.}"
|
||||||
|
url_cache_id="nextcloud-${ver}.${ext#.}"
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
DOWNLOAD_URL="$url"
|
DOWNLOAD_URL="$url"
|
||||||
|
Loading…
Reference in New Issue
Block a user