ayaports/apk/nextcloud/nextcloud.pre-upgrade

11 lines
297 B
Text
Raw Normal View History

2019-06-07 18:13:40 +00:00
#!/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