aboutsummaryrefslogtreecommitdiffstats
path: root/community/nextcloud/nextcloud.pre-upgrade
blob: f444e78f492fe8613a9f9f050e66082d10af39af (plain)
1
2
3
4
5
6
7
8
9
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