diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2020-06-03 00:45:37 +0300 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2020-06-03 00:45:37 +0300 |
commit | 96403075348e90987f5185c5557daced840466c3 (patch) | |
tree | e703054724ffba1e0068dd9b1b036bca1060aa1f | |
parent | 2b9e5bb52846bd8d671c1e2cc041640650a6f3ae (diff) |
retry upgrade when Talk caused a known issue, fixes #120
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r-- | setup | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |