If status.php fails check <server>/nextcloud/status.php

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2018-01-23 13:43:44 +01:00
parent 4e7c033ae5
commit 7ce009ef49
No known key found for this signature in database
GPG key ID: F941078878347C0C

View file

@ -391,7 +391,7 @@ bool LsColJob::finished()
namespace {
const char statusphpC[] = "status.php";
const char owncloudDirC[] = "owncloud/";
const char nextcloudDirC[] = "nextcloud/";
}
CheckServerJob::CheckServerJob(AccountPtr account, QObject *parent)
@ -496,7 +496,7 @@ bool CheckServerJob::finished()
// at the original location
if ((reply()->error() == QNetworkReply::ContentNotFoundError) && (!_subdirFallback)) {
_subdirFallback = true;
setPath(QLatin1String(owncloudDirC) + QLatin1String(statusphpC));
setPath(QLatin1String(nextcloudDirC) + QLatin1String(statusphpC));
start();
qCInfo(lcCheckServerJob) << "Retrying with" << reply()->url();
return false;