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:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2020-06-03 00:45:37 +0300
committerArthur Schiwon <blizzz@arthur-schiwon.de>2020-06-03 00:45:37 +0300
commit96403075348e90987f5185c5557daced840466c3 (patch)
treee703054724ffba1e0068dd9b1b036bca1060aa1f
parent2b9e5bb52846bd8d671c1e2cc041640650a6f3ae (diff)
retry upgrade when Talk caused a known issue, fixes #120
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-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