diff options
Diffstat (limited to 'community/nextcloud/nextcloud.pre-upgrade')
-rw-r--r-- | community/nextcloud/nextcloud.pre-upgrade | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/community/nextcloud/nextcloud.pre-upgrade b/community/nextcloud/nextcloud.pre-upgrade new file mode 100644 index 0000000000..f444e78f49 --- /dev/null +++ b/community/nextcloud/nextcloud.pre-upgrade @@ -0,0 +1,10 @@ +#!/bin/sh + +ver_old="$2" +apps_link='/usr/share/webapps/nextcloud/apps' + +# Remove apps symlink before replacing files to avoid losing installed apps. +# This is a workaround for some issue in apk. +if [ $(apk version -t "$ver_old" '12.0.0-r2') = '<' ] && [ -L "$apps_link" ]; then + rm "$apps_link" +fi |