From: Philipp Date: Sun, 12 Feb 2023 12:38:02 +0000 (+0100) Subject: adapt update script X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=553c9091957a913b8bc8c255b13416490b002073;p=friendica.git adapt update script --- diff --git a/update.php b/update.php index db75f116d9..86735f864c 100644 --- a/update.php +++ b/update.php @@ -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;