mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
add new constant for cli: SELF_NAME
This commit is contained in:
parent
a8a896e0f5
commit
6c4fd4ed27
2
aac
2
aac
@ -11,6 +11,8 @@ if(!IS_CLI) {
|
|||||||
require_once SYSTEM . 'functions.php';
|
require_once SYSTEM . 'functions.php';
|
||||||
require_once SYSTEM . 'init.php';
|
require_once SYSTEM . 'init.php';
|
||||||
|
|
||||||
|
define('SELF_NAME', basename(__FILE__));
|
||||||
|
|
||||||
use MyAAC\Plugins;
|
use MyAAC\Plugins;
|
||||||
use Symfony\Component\Console\Application;
|
use Symfony\Component\Console\Application;
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ class CronjobInstallCommand extends Command
|
|||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
$job = '* * * * * /usr/bin/php ' . BASE . 'ma cronjob >> ' . SYSTEM . 'logs/cron.log 2>&1';
|
$job = '* * * * * /usr/bin/php ' . BASE . SELF_NAME . ' cronjob >> ' . SYSTEM . 'logs/cron.log 2>&1';
|
||||||
|
|
||||||
if ($this->cronjobExists($job)) {
|
if ($this->cronjobExists($job)) {
|
||||||
$io->info('MyAAC cronjob already installed.');
|
$io->info('MyAAC cronjob already installed.');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user