aboutsummaryrefslogtreecommitdiffstats
path: root/community/nextcloud/nextcloud.post-upgrade
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-06-25 01:42:19 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-06-25 02:42:48 +0200
commitedde9744d2bfbb742772710f4f9d07e2e184e947 (patch)
tree2ec23aea392efc803f318f77a76f8b3f3ae8fc69 /community/nextcloud/nextcloud.post-upgrade
parentae8f222e196e992f376395f6bdb1d6581fb6c863 (diff)
downloadaports-edde9744d2bfbb742772710f4f9d07e2e184e947.tar.bz2
aports-edde9744d2bfbb742772710f4f9d07e2e184e947.tar.xz
community/nextcloud: move almost all apps to subpackages
Diffstat (limited to 'community/nextcloud/nextcloud.post-upgrade')
-rw-r--r--community/nextcloud/nextcloud.post-upgrade28
1 files changed, 19 insertions, 9 deletions
diff --git a/community/nextcloud/nextcloud.post-upgrade b/community/nextcloud/nextcloud.post-upgrade
index 657f17e0b1..95cf241ccc 100644
--- a/community/nextcloud/nextcloud.post-upgrade
+++ b/community/nextcloud/nextcloud.post-upgrade
@@ -2,18 +2,28 @@
ver_old="$2"
-if [ $(apk version -t "$ver_old" '12.0.0-r2') = '<' ] \
- && [ "$(ls -A /var/lib/nextcloud/apps)" ]
-then
+if [ $(apk version -t "$ver_old" '12.0.0-r2') = '<' ]; then
cat >&2 <<-EOF
*
- * Nextcloud's bundled apps have been moved from /var/lib/nextcloud/apps
- * to /usr/share/webapps/nextcloud/apps. Only apps installed from App Store
- * should be stored in /var/lib/nextcloud/apps.
+ * All Nextcloud's bundled apps (except "files" and "dav") have been moved to
+ * separate subpackages (e.g. nextcloud-activity). If you want to install
+ * all apps that are enabled by default at once, run:
*
- * It seems that you have installed some apps from App Store, so you have to
- * add /var/lib/nextcloud/apps to your apps_paths. Copy "apps_paths" key
- * from /etc/nextcloud/config.php.apk-new to your config.php.
+ * apk add nextcloud-default-apps
*
EOF
+
+ if [ "$(ls -A /var/lib/nextcloud/apps)" ]; then
+ cat >&2 <<-EOF
+ *
+ * Nextcloud's bundled apps have been moved from /var/lib/nextcloud/apps
+ * to /usr/share/webapps/nextcloud/apps. Only apps installed from App Store
+ * should be stored in /var/lib/nextcloud/apps.
+ *
+ * It seems that you have installed some apps from App Store, so you have to
+ * add /var/lib/nextcloud/apps to your apps_paths. Copy "apps_paths" key
+ * from /etc/nextcloud/config.php.apk-new to your config.php.
+ *
+ EOF
+ fi
fi