summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-09-14 10:29:52 +0200
committerJulius Härtl <jus@bitgrid.net>2020-09-17 08:55:14 +0200
commit53402158714de001e2b02e688c506ab9c568eb74 (patch)
tree6aadfac19198568c38ebf4bc65817bcdf47fd7ac /lib/private
parent498684efd6aef9cd61266a2b6884c092d06406ce (diff)
downloadnextcloud-server-53402158714de001e2b02e688c506ab9c568eb74.tar.gz
nextcloud-server-53402158714de001e2b02e688c506ab9c568eb74.zip
Install richdocumentscode depending on the architecture
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/App/AppStore/Bundles/HubBundle.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/private/App/AppStore/Bundles/HubBundle.php b/lib/private/App/AppStore/Bundles/HubBundle.php
index 501a4825772..301be810c5d 100644
--- a/lib/private/App/AppStore/Bundles/HubBundle.php
+++ b/lib/private/App/AppStore/Bundles/HubBundle.php
@@ -33,13 +33,19 @@ class HubBundle extends Bundle {
}
public function getAppIdentifiers() {
- return [
+ $hubApps = [
'spreed',
'contacts',
'calendar',
'mail',
- 'richdocumentscode',
- 'richdocuments',
];
+
+ $architecture = php_uname('m');
+ if (PHP_OS_FAMILY === 'Linux' && in_array($architecture, ['x86_64', 'aarch64'])) {
+ $hubApps[] = 'richdocuments';
+ $hubApps[] = 'richdocumentscode' . ($architecture === 'aarch64' ? '_arm64' : '');
+ }
+
+ return $hubApps;
}
}