aboutsummaryrefslogtreecommitdiffstats
path: root/community/nextcloud/nextcloud.post-upgrade
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-06-23 01:12:19 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-06-25 02:42:47 +0200
commit56340e0c374f9f287da09df6dbf52894d2ea4861 (patch)
tree38ab315800769c98fb614ca62811f0b2c23d6bbf /community/nextcloud/nextcloud.post-upgrade
parent4c0262e02aa02fdedae18155d3ca87aeebeec87f (diff)
downloadaports-56340e0c374f9f287da09df6dbf52894d2ea4861.tar.bz2
aports-56340e0c374f9f287da09df6dbf52894d2ea4861.tar.xz
community/nextcloud: move bundled apps to /usr/share
It's totally wrong to install pkg's files into /var/lib and make them writable by webserver! Moreover when Nextcloud supports multiple app paths. So we use two apps locations: * /usr/share/webapps/nextcloud/apps - for apps installed by apk, * /var/lib/nextcloud/apps - for apps installed from AppStore. BTW Fedora uses the same approach.
Diffstat (limited to 'community/nextcloud/nextcloud.post-upgrade')
-rw-r--r--community/nextcloud/nextcloud.post-upgrade19
1 files changed, 19 insertions, 0 deletions
diff --git a/community/nextcloud/nextcloud.post-upgrade b/community/nextcloud/nextcloud.post-upgrade
new file mode 100644
index 0000000000..657f17e0b1
--- /dev/null
+++ b/community/nextcloud/nextcloud.post-upgrade
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+ver_old="$2"
+
+if [ $(apk version -t "$ver_old" '12.0.0-r2') = '<' ] \
+ && [ "$(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