]> git.mxchange.org Git - friendica.git/commitdiff
adapt update script
authorPhilipp <admin@philipp.info>
Sun, 12 Feb 2023 12:38:02 +0000 (13:38 +0100)
committerPhilipp <admin@philipp.info>
Sun, 12 Feb 2023 12:38:02 +0000 (13:38 +0100)
update.php

index db75f116d978d482c6c7fcc227f76894ac549526..86735f864c0e8b2a9d146a95e79529aa14385b40 100644 (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;