Skip to content

Commit

Permalink
Improve nextcloud upgrade output
Browse files Browse the repository at this point in the history
  • Loading branch information
downtownallday committed Mar 27, 2024
1 parent cdcce89 commit 240399a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions setup/nextcloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -458,17 +458,18 @@ hide_output $occ app:disable firstrunwizard
hide_output $occ app:enable user_external

# if contacts isn't installed the nextcloud app store can reject the
# request temporarily, especially if you've been accessing it a lot
# request temporarily, especially if its been accessed a lot
if ! $occ app:enable contacts >/dev/null; then
tries=1
tries=0
while ! $occ app:enable contacts; do
let tries+=1
if [ $tries -gt 50 ]; then
if [ $tries -gt 30 ]; then
echo "Failed"
exit 1
fi
echo -n "...wait..."
sleep 10
stdbuf -o0 echo -n "...wait..."
sleep 15
stdbuf -o0 echo -n "retry $tries of 30..."
done
fi

Expand Down

0 comments on commit 240399a

Please sign in to comment.