diff options
| author | 2016-10-22 12:58:06 +0200 | |
|---|---|---|
| committer | 2016-10-22 12:58:06 +0200 | |
| commit | e1f214e9e2e09a83a9920e33fbf617dfe48fbb7e (patch) | |
| tree | 916b23c04ce53891e8d9e2af6ed413c7f7379491 /app/actualize_script.php | |
| parent | 40b5d3f933e27f37894f58f99c63409f2cdd2d5a (diff) | |
CLI list-users and create-user
https://github.com/FreshRSS/FreshRSS/issues/1095
https://github.com/FreshRSS/FreshRSS/issues/1090
Diffstat (limited to 'app/actualize_script.php')
| -rwxr-xr-x | app/actualize_script.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/actualize_script.php b/app/actualize_script.php index 78712d721..deaa1bf7c 100755 --- a/app/actualize_script.php +++ b/app/actualize_script.php @@ -28,13 +28,13 @@ $app = new FreshRSS(); $system_conf = Minz_Configuration::get('system'); $system_conf->auth_type = 'none'; // avoid necessity to be logged in (not saved!) -FreshRSS_Context::$isCron = true; +FreshRSS_Context::$isCli = true; // Create the list of users to actualize. // Users are processed in a random order but always start with admin $users = listUsers(); shuffle($users); -if ($system_conf->default_user !== ''){ +if ($system_conf->default_user !== '') { array_unshift($users, $system_conf->default_user); $users = array_unique($users); } |
