mirror of
https://github.com/slawkens/myaac.git
synced 2025-11-29 06:36:51 +01:00
add new constant for cli: SELF_NAME
This commit is contained in:
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.');
|
||||||
|
|||||||
Reference in New Issue
Block a user