community/nextcloud: print notice to run "occ upgrade" after upgrade

This commit is contained in:
Jakub Jirutka 2018-01-24 17:24:10 +01:00
parent e87d962796
commit 0ffca2c02d

View File

@ -1,5 +1,6 @@
#!/bin/sh #!/bin/sh
ver_new="$1"
ver_old="$2" ver_old="$2"
if [ $(apk version -t "$ver_old" '12.0.0-r2') = '<' ]; then if [ $(apk version -t "$ver_old" '12.0.0-r2') = '<' ]; then
@ -27,3 +28,7 @@ if [ $(apk version -t "$ver_old" '12.0.0-r2') = '<' ]; then
EOF EOF
fi fi
fi fi
if [ "${ver_new%-r*}" != "${ver_old%-r*}" ]; then
echo '* Run "occ upgrade" to finish upgrade of your NextCloud instance!' >&2
fi