mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-30 17:58:59 +00:00
Fix for safe binaries.
This commit is contained in:
+2
-2
@@ -1274,10 +1274,10 @@ while ($i > 0) {
|
||||
$_update_cmd = "cd $_bin && $_php update_binaries.php 2>&1 $log";
|
||||
} else if ($binaries == 2) {
|
||||
$log = writelog($panes0[2]);
|
||||
$_update_cmd = "$_python ${DIR}/../python/binaries_threaded.py 2>&1 $log";
|
||||
$_update_cmd = "$_php ${DIR}/../../multiprocessing/binaries.php 0 2>&1 $log";
|
||||
} else if ($binaries == 3) {
|
||||
$log = writelog($panes0[2]);
|
||||
$_update_cmd = "$_python ${DIR}/../python/binaries_safe_threaded.py 2>&1 $log";
|
||||
$_update_cmd = "$_php ${DIR}/../../multiprocessing/safe.php binaries 2>&1 $log";
|
||||
}
|
||||
|
||||
if ($releases_run != 0) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
require(dirname(__FILE__) . "/config.php");
|
||||
require_once(dirname(__FILE__) . "/config.php");
|
||||
require_once(WWW_DIR . "/lib/groups.php");
|
||||
require_once(WWW_DIR . "/lib/binaries.php");
|
||||
require_once(WWW_DIR . "/lib/ColorCLI.php");
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
require_once(dirname(__FILE__) . "../../www/config.php");
|
||||
+1
-1
@@ -188,7 +188,7 @@ switch ($options[1]) {
|
||||
$nntp = nntp($pdo);
|
||||
$groups = new \Groups();
|
||||
$groupMySQL = $groups->getByName($options[2]);
|
||||
(new \Binaries())->updateGroup($groupMySQL);
|
||||
(new \Binaries())->updateGroup($nntp, $groupMySQL);
|
||||
break;
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
require_once(dirname(__FILE__) . "/config.php");
|
||||
require_once(WWW_DIR."/lib/groups.php");
|
||||
require_once(WWW_DIR."/lib/binaries.php");
|
||||
|
||||
if (isset($argv[1]))
|
||||
{
|
||||
$group = $argv[1];
|
||||
echo "Updating group {$group}\n";
|
||||
|
||||
$g = new Groups;
|
||||
$group = $g->getByName($group);
|
||||
|
||||
$bin = new Binaries;
|
||||
$bin->updateGroup(null, $group);
|
||||
}
|
||||
else
|
||||
{
|
||||
$binaries = new Binaries;
|
||||
$binaries->updateAllGroups();
|
||||
}
|
||||
Reference in New Issue
Block a user