adapt update script

This commit is contained in:
Philipp Holzer 2023-02-12 13:38:02 +01:00
parent ab281d5190
commit 553c909195
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432

View file

@ -1278,7 +1278,11 @@ function update_1514()
$transactionalConfig->commit();
// Rename the node.config.php so it won't get used, but it isn't deleted.
rename(dirname(__FILE__) . '/config/node.config.php', dirname(__FILE__) . '/config/node.config.php.bak');
if (rename(dirname(__FILE__) . '/config/node.config.php', dirname(__FILE__) . '/config/node.config.php.bak')) {
return Update::SUCCESS;
} else {
return Update::FAILED;
}
}
return Update::SUCCESS;