]> git.wh0rd.org - tt-rss.git/blobdiff - update.php
Close lockfile handle before trying to unlink during update.
[tt-rss.git] / update.php
index 54401f99acfbffd2476bb4594954b25771fa64c2..ec6875971cbb315bc3221ad08d24eaa4164aa43b 100755 (executable)
                        for ($i = $updater->getSchemaVersion() + 1; $i <= SCHEMA_VERSION; $i++) {
                                _debug("performing update up to version $i...");
 
-                               $result = $updater->performUpdateTo($i);
+                               $result = $updater->performUpdateTo($i, false);
 
                                _debug($result ? "OK!" : "FAILED!");
 
 
        PluginHost::getInstance()->run_commands($options);
 
-       if (file_exists(LOCK_DIRECTORY . "/$lock_filename"))
+       if (file_exists(LOCK_DIRECTORY . "/$lock_filename")) {
+               fclose($lock_handle);
                unlink(LOCK_DIRECTORY . "/$lock_filename");
+       }
 ?>