mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-09-01 22:39:00 +02:00
Fix contacts/calendar download as source archive (#2588)
The setup script is using GitHub's auto-generated source archive URL (archive/refs/tags/) to download the Nextcloud contacts and calendar apps. Source archives exclude `vendor/` composer dependencies and compiled frontend assets since they're gitignored, causing app:enable to fail with: `Could not download app contacts`. Switch to the release tarball URL (releases/download/) which includes all pre-built assets.
This commit is contained in:
@@ -32,16 +32,16 @@ nextcloud_hash=d5c10b650e5396d5045131c6d22c02a90572527c
|
|||||||
# https://github.com/nextcloud/user_external/tags
|
# https://github.com/nextcloud/user_external/tags
|
||||||
#
|
#
|
||||||
# * For these three packages, contact, calendar and user_external, the hash is the SHA1 hash of
|
# * For these three packages, contact, calendar and user_external, the hash is the SHA1 hash of
|
||||||
# the ZIP package, which you can find by just running this script and copying it from
|
# the release tarball (from the releases/download URL, not the source archive), which you can
|
||||||
# the error message when it doesn't match what is below:
|
# find by running: curl -sL <url> | sha1sum
|
||||||
|
|
||||||
# Always ensure the versions are supported, see https://apps.nextcloud.com/apps/contacts
|
# Always ensure the versions are supported, see https://apps.nextcloud.com/apps/contacts
|
||||||
contacts_ver=5.5.3
|
contacts_ver=5.5.3
|
||||||
contacts_hash=799550f38e46764d90fa32ca1a6535dccd8316e5
|
contacts_hash=b234ab410480a4106176a28f39c9b27f471d0473
|
||||||
|
|
||||||
# Always ensure the versions are supported, see https://apps.nextcloud.com/apps/calendar
|
# Always ensure the versions are supported, see https://apps.nextcloud.com/apps/calendar
|
||||||
calendar_ver=4.7.6
|
calendar_ver=4.7.6
|
||||||
calendar_hash=a995bca4effeecb2cab25f3bbeac9bfe05fee766
|
calendar_hash=cf8e68e7d945ee71933f5bb71a969faf152da55c
|
||||||
|
|
||||||
# Always ensure the versions are supported, see https://apps.nextcloud.com/apps/user_external
|
# Always ensure the versions are supported, see https://apps.nextcloud.com/apps/user_external
|
||||||
user_external_ver=3.3.0
|
user_external_ver=3.3.0
|
||||||
@@ -105,11 +105,11 @@ InstallNextcloud() {
|
|||||||
# their github repositories.
|
# their github repositories.
|
||||||
mkdir -p /usr/local/lib/owncloud/apps
|
mkdir -p /usr/local/lib/owncloud/apps
|
||||||
|
|
||||||
wget_verify "https://github.com/nextcloud-releases/contacts/archive/refs/tags/v$version_contacts.tar.gz" "$hash_contacts" /tmp/contacts.tgz
|
wget_verify "https://github.com/nextcloud-releases/contacts/releases/download/v$version_contacts/contacts-v$version_contacts.tar.gz" "$hash_contacts" /tmp/contacts.tgz
|
||||||
tar xf /tmp/contacts.tgz -C /usr/local/lib/owncloud/apps/
|
tar xf /tmp/contacts.tgz -C /usr/local/lib/owncloud/apps/
|
||||||
rm /tmp/contacts.tgz
|
rm /tmp/contacts.tgz
|
||||||
|
|
||||||
wget_verify "https://github.com/nextcloud-releases/calendar/archive/refs/tags/v$version_calendar.tar.gz" "$hash_calendar" /tmp/calendar.tgz
|
wget_verify "https://github.com/nextcloud-releases/calendar/releases/download/v$version_calendar/calendar-v$version_calendar.tar.gz" "$hash_calendar" /tmp/calendar.tgz
|
||||||
tar xf /tmp/calendar.tgz -C /usr/local/lib/owncloud/apps/
|
tar xf /tmp/calendar.tgz -C /usr/local/lib/owncloud/apps/
|
||||||
rm /tmp/calendar.tgz
|
rm /tmp/calendar.tgz
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user