Skip to content

Commit de04591

Browse files
authored
upgrade apps a second time (#2447)
Signed-off-by: Daniel Hansson <[email protected]>
1 parent a14cbeb commit de04591

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

nextcloud_update.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,6 +1102,15 @@ do
11021102
fi
11031103
done
11041104

1105+
# Update all Nextcloud apps a second time (if the old backup was outdated)
1106+
if [ "${CURRENTVERSION%%.*}" -ge "15" ]
1107+
then
1108+
nextcloud_occ maintenance:mode --off
1109+
# Check for upgrades
1110+
print_text_in_color "$ICyan" "Trying to automatically update all Nextcloud apps again..."
1111+
nextcloud_occ_no_check app:update --all
1112+
fi
1113+
11051114
# Remove header for Nextcloud 14 (already in .htaccess)
11061115
if [ -f /etc/apache2/sites-available/"$(hostname -f)".conf ]
11071116
then

0 commit comments

Comments
 (0)