diff --git a/scripts/_common.sh b/scripts/_common.sh index 743434c..b9f77a0 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -5,13 +5,15 @@ APPNAME="nextcloud" # Nextcloud version -LAST_VERSION="11.0.0" +LAST_VERSION="$(grep "VERSION=" "upgrade.d/upgrade.last.sh" | cut -d= -f2)" +NEXTCLOUD_SOURCE_SHA256="$(grep "NEXTCLOUD_SOURCE_SHA256=" "upgrade.d/upgrade.last.sh" | cut -d= -f2)" + # Package name for Nextcloud dependencies DEPS_PKG_NAME="nextcloud-deps" # Remote URL to fetch Nextcloud tarball -NEXTCLOUD_SOURCE_URL="https://download.nextcloud.com/server/releases/nextcloud-${VERSION}.tar.bz2" +NEXTCLOUD_SOURCE_URL="https://download.nextcloud.com/server/releases/nextcloud-${LAST_VERSION}.tar.bz2" # App package root directory should be the parent folder PKGDIR=$(cd ../; pwd)