diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2020-06-03 00:51:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-03 00:51:59 +0300 |
commit | 107007cc18d1c898aadbf4a3e0c6f281cb16f46a (patch) | |
tree | e703054724ffba1e0068dd9b1b036bca1060aa1f | |
parent | 2b9e5bb52846bd8d671c1e2cc041640650a6f3ae (diff) | |
parent | 96403075348e90987f5185c5557daced840466c3 (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-- | 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 |