Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/univention-app.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2020-06-03 00:51:59 +0300
committerGitHub <noreply@github.com>2020-06-03 00:51:59 +0300
commit107007cc18d1c898aadbf4a3e0c6f281cb16f46a (patch)
treee703054724ffba1e0068dd9b1b036bca1060aa1f
parent2b9e5bb52846bd8d671c1e2cc041640650a6f3ae (diff)
parent96403075348e90987f5185c5557daced840466c3 (diff)
Merge pull request #121 from nextcloud/fix/120/spreed-on-upgrade
retry upgrade when Talk caused a known issue, fixes #120
-rw-r--r--setup7
1 files changed, 7 insertions, 0 deletions
diff --git a/setup b/setup
index d08af2f..2914a23 100644
--- a/setup
+++ b/setup
@@ -111,6 +111,13 @@ $OCC check
$OCC status
$OCC app:list
$OCC upgrade 2>&1>> "$UPGRADE_LOGFILE"
+if [[ $(cat "$UPGRADE_LOGFILE" | grep "Cannot declare class" | wc -l) -eq 1 ]]; then
+ # This block can be removed with 19, cf. https://github.com/nextcloud/spreed/issues/2806
+ $OCC upgrade 2>&1>> "$UPGRADE_LOGFILE"
+ if [[ $? -eq 0 ]]; then
+ $OCC maintenance:mode --off
+ fi
+fi
error_msg "The upgrade log is written to $UPGRADE_LOGFILE within the nextcloud container"
# basic Nextcloud configuration