getMessage() . "\n"); } } ); } else { fwrite(STDERR, "Cannot write lock file: " . LOCK_FILE . "\n"); exit(1); } $fdir = dirname(__FILE__); require_once($fdir . '/Post.php'); $config_file = realpath(dirname(__FILE__) . '/..') . '/config.php'; if (! file_exists($config_file)) { fwrite(STDERR, "Missing config file [$config_file]\nsee [$config_file.default] for an example\n"); exit(1); } require_once($config_file); Updater::update(); exit(Updater::$changes_were_written ? 2 : 0);