Commit e6e2a14a authored by David Morley's avatar David Morley

remove test items

parent 83355645
Pipeline #747 failed with stage
in 1 minute and 30 seconds
......@@ -44,15 +44,15 @@ psql -U podupuser podupdb < db/tables.sql
1. Edit `config.php` to add your DB and file settings
2. Touch add.log in location you configured in config.php
3. Create your backup folder
4. Add a pod and run `db/pull.sh init`
4. Add a pod and run `php db/update.php init`
# To Use:
run `db/pull.sh` manually or with cron to update your data
run `db/pull.sh debug` to debug output
run `db/pull.sh sqldebug` to debug sql
run `db/pull.sh develop` to run without email alerts to end users
run `db/pull.sh Check_System_Deleted` to re-check system deleted pods as needed
run `php db/update.php` manually or with cron to update your data
run `php db/update.php debug` to debug output
run `php db/update.php sqldebug` to debug sql
run `php db/update.php develop` to run without email alerts to end users
run `php db/update.php Check_System_Deleted` to re-check system deleted pods as needed
These commands can be combined
# To Upgrade:
......
......@@ -21,8 +21,6 @@ use GeoIp2\Database\Reader;
use Longman\IPTools\Ip;
use Poduptime\PodStatus;
use RedBeanPHP\R;
//
//updateMeta('pods_updating', false);
if (getMeta('pods_updating')) {
die('already running');
......@@ -67,7 +65,7 @@ try {
$sql .= ' WHERE status = ? ORDER BY id';
$pods = R::getAll($sql, [PodStatus::SYSTEM_DELETED]);
} elseif (is_cli()) {
$sql .= ' WHERE status < ? ORDER BY id LIMIT 50';
$sql .= ' WHERE status < ? ORDER BY id';
$pods = R::getAll($sql, [PodStatus::PAUSED]);
}
} catch (\RedBeanPHP\RedException $e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment