NextCloud疑难杂症升级

升级脚本

#!/bin/bash
rm -rf /usr/share/nginx/data/updater-occ* 2>/dev/null
cd /usr/share/nginx/html/
sudo -u nginx php occ maintenance:mode --on
sudo -u nginx php updater/updater.phar

报错

Step 4 is currently in process. Please call this command later.

修复方式,删除升级工程总异常缓存(data目录下的update-ooc*)

这里的 data 目录是自定义过的

rm -rf /usr/share/nginx/data/updater-occ*